Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127
Windows
Desktop
5 months ago
Test name Executions per second
getElementById 21337078.0 Ops/sec
getElementsByTagName 7837760.0 Ops/sec
querySelector 5469411.0 Ops/sec
getElementsByClassName 4092872.2 Ops/sec
getElementsByName 6382560.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;