Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Ubuntu
Desktop
one year ago
Test name Executions per second
querySelector 4141424.0 Ops/sec
querySelectorAll 1985353.9 Ops/sec
getElementsByClassName 8336809.5 Ops/sec
querySelector (ID) 4280258.5 Ops/sec
getElementsByID 8443753.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;