Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Windows
Desktop
one year ago
Test name Executions per second
getElementById 10184625.0 Ops/sec
getElementsByTagName 1651467.1 Ops/sec
querySelector 1691795.6 Ops/sec
getElementsByClassName 1632588.0 Ops/sec
getElementsByName 1754010.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName