Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Desktop
4 years ago
Test name Executions per second
getElementById 316606.4 Ops/sec
getElementsByTagName 112820.4 Ops/sec
querySelector 89745.8 Ops/sec
getElementsByClassName 114637.7 Ops/sec
getElementsByName 119674.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;