Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Windows
Desktop
one year ago
Test name Executions per second
getElementById 20261236.0 Ops/sec
getElementsByTagName 13376141.0 Ops/sec
querySelector 21342784.0 Ops/sec
getElementsByClassName 12097563.0 Ops/sec
getElementsByName 17140126.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName