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 2673617.2 Ops/sec
getElementsByClassName 20252964.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName