Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Linux
Desktop
6 years ago
Test name Executions per second
getElementById 3256946.2 Ops/sec
getElementsByTagName 1563334.8 Ops/sec
querySelector 1477672.8 Ops/sec
getElementsByClassName 1401640.9 Ops/sec
getElementsByName 2595492.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;