Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Windows
Desktop
3 years ago
Test name Executions per second
getElementById 6168500.0 Ops/sec
getElementsByTagName 4724250.5 Ops/sec
querySelector 7699783.5 Ops/sec
getElementsByClassName 3519503.8 Ops/sec
getElementsByName 5856294.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;