Run details:
Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
getElementById 1411665.8 Ops/sec
getElementsByTagName 644998.1 Ops/sec
querySelector 683108.9 Ops/sec
getElementsByClassName 640692.8 Ops/sec
getElementsByName 728482.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName