Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.89 Mobile Safari/537.36
Chrome Mobile 76
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
querySelector 294609.6 Ops/sec
getElementsByClassName 416586.8 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName