Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Linux
Desktop
one month ago
Test name Executions per second
querySelector 1782100.1 Ops/sec
querySelectorAll 728426.8 Ops/sec
getElementsByClassName 3601768.8 Ops/sec
querySelector (ID) 1940782.6 Ops/sec
getElementsByID 3642438.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;