Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Desktop
4 years ago
Test name Executions per second
querySelectorAll tag & class 168878.3 Ops/sec
querySelectorAll only tag 181351.2 Ops/sec
querySelectorAll only class 171089.5 Ops/sec
getElementsByClassName 1222843.9 Ops/sec
getElementsByTagName 1240971.9 Ops/sec
HTML Preparation code:
Tests:
  • querySelectorAll tag & class

  • querySelectorAll only tag

  • querySelectorAll only class

  • getElementsByClassName

  • getElementsByTagName