Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Chrome 63
Linux
Desktop
5 years ago
Test name Executions per second
getElementById 3627577.0 Ops/sec
getElementsByTagName 1816430.0 Ops/sec
querySelector 1903530.4 Ops/sec
getElementsByClassName 1403247.1 Ops/sec
getElementsByName 2048128.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;