Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/73.0.3683.75 Chrome/73.0.3683.75 Safari/537.36
Chromium 73
Linux
Desktop
5 years ago
Test name Executions per second
getElementById 3605084.8 Ops/sec
getElementsByTagName 1664040.5 Ops/sec
querySelector 1924685.1 Ops/sec
getElementsByClassName 1617872.2 Ops/sec
getElementsByName 1885655.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;