Run details:
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Windows XP
Desktop
8 months ago
Test name Executions per second
querySelector 2087048.6 Ops/sec
querySelectorAll 547848.6 Ops/sec
getElementsByClassName 17944152.0 Ops/sec
querySelector (ID) 2135934.0 Ops/sec
getElementsByID 17867802.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;