Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Linux
Desktop
one year ago
Test name Executions per second
getElementById 2508206.8 Ops/sec
getElementsByTagName 1296855.2 Ops/sec
querySelector 1431237.1 Ops/sec
getElementsByClassName 1254249.5 Ops/sec
getElementsByName 1574498.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName