Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/85.0.4183.109 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 85
iOS 14.0
Mobile
4 years ago
Test name Executions per second
querySelector 2473652.8 Ops/sec
getElementsByClassName 2879072.8 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName