Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Windows 8.1
Desktop
4 years ago
Test name Executions per second
querySelector 3496029.2 Ops/sec
getElementsByClassName 4327596.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName