Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows 7
Desktop
4 years ago
Test name Executions per second
getElementById 737604.3 Ops/sec
getElementsByTagName 325806.2 Ops/sec
querySelector 253237.8 Ops/sec
getElementsByClassName 333905.9 Ops/sec
getElementsByName 388214.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;