Run details:
Mozilla/5.0 (Linux; Android 10; SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
querySelector 1417291.1 Ops/sec
getElementsByClassName 1942143.6 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName