Run details:
Mozilla/5.0 (Linux; Android 7.0; LG-M200) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36
Chrome Mobile 70
Android 7.0
Mobile
2 years ago
Test name Executions per second
querySelector 270920.3 Ops/sec
getElementsByClassName 370638.3 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName