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 OPR/94.0.0.0 (Edition std-1)
Opera 94
Windows
Desktop
one year ago
Test name Executions per second
getElementById 6215400.5 Ops/sec
getElementsByTagName 3840731.5 Ops/sec
querySelector 4174579.0 Ops/sec
getElementsByClassName 3838645.0 Ops/sec
getElementsByName 4425586.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName