Run details:
Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-G920F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/7.2 Chrome/59.0.3071.125 Mobile Safari/537.36
Chrome Mobile 59
Android 7.0
Mobile
6 years ago
Test name Executions per second
querySelector 229264.0 Ops/sec
getElementsByClassName 273111.6 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName