Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Linux
Desktop
one year ago
Test name Executions per second
getElementById 2571158.2 Ops/sec
getElementsByTagName 1356003.9 Ops/sec
querySelector 1475090.9 Ops/sec
getElementsByClassName 1270598.8 Ops/sec
getElementsByName 1488778.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;