Run details:
Mozilla/5.0 (Windows NT 5.1; rv:68.0) Gecko/20100101 Goanna/4.8 Firefox/68.0 Basilisk/52.9.0
Firefox 68
Windows XP
Desktop
2 years ago
Test name Executions per second
querySelector 2787600.8 Ops/sec
getElementsByClassName 20254630.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName