Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 69
iOS 11.4
Mobile
6 years ago
Test name Executions per second
querySelector 1355413.5 Ops/sec
getElementsByClassName 1586200.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName