Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Ubuntu
Desktop
3 years ago
Test name Executions per second
querySelector 3180439.2 Ops/sec
querySelectorAll 1408556.6 Ops/sec
getElementsByClassName 4526118.0 Ops/sec
querySelector (ID) 3078986.0 Ops/sec
getElementsByID 4632219.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;