Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Desktop
6 years ago
Test name Executions per second
getElementById 758732.1 Ops/sec
getElementsByTagName 355419.2 Ops/sec
querySelector 288291.9 Ops/sec
getElementsByClassName 371141.9 Ops/sec
getElementsByName 430953.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;