Run details:
Mozilla/5.0 (Linux; Android 11; SM-G970U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.70 Mobile Safari/537.36
Chrome Mobile 97
Android
Mobile
2 years ago
Test name Executions per second
getElementById 2751728.0 Ops/sec
querySelector 1013711.0 Ops/sec
getElementById and getElementsByClassName 1293536.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementById and getElementsByClassName