Run details:
Mozilla/5.0 (Linux; Android 10; VOG-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
getElementById 3278609.2 Ops/sec
getElementsByTagName 1078212.5 Ops/sec
querySelector 1484740.0 Ops/sec
getElementsByClassName 1383698.6 Ops/sec
getElementsByName 1625772.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName