Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/68.0.3440.83 Mobile/16A366 Safari/604.1
Chrome Mobile iOS 68
iOS 12.0
Mobile
6 years ago
Test name Executions per second
querySelector 1984846.9 Ops/sec
getElementsByClassName 2709187.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName