Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Linux
Desktop
one month ago
Test name Executions per second
getElementById 7343153.5 Ops/sec
getElementsByTagName 4630135.5 Ops/sec
querySelector 5880161.5 Ops/sec
getElementsByClassName 3967419.2 Ops/sec
getElementsByName 6137550.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;