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 14603744.0 Ops/sec
getElementsByTagName 8740070.0 Ops/sec
querySelector 11090857.0 Ops/sec
getElementsByClassName 7633064.0 Ops/sec
getElementsByName 11468686.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;