Run details:
Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Firefox/45.0
Firefox 45
Windows XP
Desktop
5 years ago
Test name Executions per second
getElementById 3754270.8 Ops/sec
getElementsByTagName 1339360.2 Ops/sec
querySelector 1571171.9 Ops/sec
getElementsByClassName 1303959.6 Ops/sec
getElementsByName 2076671.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;