Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Linux
Desktop
3 years ago
Test name Executions per second
getElementById 7714656.0 Ops/sec
getElementsByTagName 5906166.0 Ops/sec
querySelector 10848294.0 Ops/sec
getElementsByClassName 5798181.5 Ops/sec
getElementsByName 8507114.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName