Run details:
Mozilla/5.0 (Linux; Android 10; PCT-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.66 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
getElementById 3365083.2 Ops/sec
getElementsByTagName 1359925.9 Ops/sec
querySelector 1792747.8 Ops/sec
getElementsByClassName 1707290.9 Ops/sec
getElementsByName 1899909.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName