Run details:
Mozilla/5.0 (Linux; Android 9; G8142) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
Chrome 73
Android
Desktop
5 years ago
Test name Executions per second
querySelector 1102835.4 Ops/sec
getElementsByClassName 1585177.4 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName