Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 OPR/45.0.2552.888
Opera 45
Windows
Desktop
4 years ago
Test name Executions per second
querySelector 505945.1 Ops/sec
querySelectorAll 230543.5 Ops/sec
getElementsByClassName 902547.1 Ops/sec
querySelector (ID) 547315.9 Ops/sec
getElementsByID 954105.2 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;