Run details:
Mozilla/5.0 (Linux; Android 7.1.2) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Focus/1.5 Chrome/87.0.4280.101 Safari/537.36
Chrome 87
Android 7.1.2
Desktop
3 years ago
Test name Executions per second
querySelector 254551.7 Ops/sec
getElementsByClassName 286765.7 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName