Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Mac OS X 10.12
Desktop
6 years ago
Test name Executions per second
getElementById 3010144.2 Ops/sec
getElementsByTagName 1236224.8 Ops/sec
querySelector 1143764.9 Ops/sec
getElementsByClassName 1201833.8 Ops/sec
getElementsByName 2385547.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;