Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Linux
Desktop
one year ago
Test name Executions per second
querySelector 2541008.0 Ops/sec
querySelectorAll 1077948.0 Ops/sec
getElementsByClassName 4879699.0 Ops/sec
querySelector (ID) 2607435.8 Ops/sec
getElementsByID 4986697.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;