Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Desktop
3 years ago
Test name Executions per second
querySelector 716325.2 Ops/sec
querySelectorAll 469026.9 Ops/sec
getElementsByClassName 1785517.4 Ops/sec
querySelector (ID) 1126399.0 Ops/sec
getElementsByID 2053489.9 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;