Run details:
Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Chrome 49
Windows Vista
Other
6 years ago
Test name Executions per second
getElementById 1103748.9 Ops/sec
getElementsByTagName 573158.5 Ops/sec
querySelector 611584.0 Ops/sec
getElementsByClassName 577978.3 Ops/sec
getElementsByName 667935.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;