Run details:
Mozilla/5.0 (Linux; Android 11; V2054) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
2 years ago
Test name Executions per second
getElementById 611307.7 Ops/sec
getElementsByTagName 251088.4 Ops/sec
querySelector 301804.7 Ops/sec
getElementsByClassName 281480.4 Ops/sec
getElementsByName 289576.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName