Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66
Windows 7
Desktop
5 years ago
Test name Executions per second
getElementById 4531903.5 Ops/sec
getElementsByTagName 2780426.8 Ops/sec
querySelector 3080736.2 Ops/sec
getElementsByClassName 2663706.8 Ops/sec
getElementsByName 4005812.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;