Run details:
Mozilla/5.0 (Linux; Android 10; ELE-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
querySelector 1271196.2 Ops/sec
getElementsByClassName 1667210.2 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName