Run details:
Mozilla/5.0 (Linux; Android 10; moto g(7) power Build/QPOS30.52-29-12; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/90.0.4430.210 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
getElementById 1206454.5 Ops/sec
getElementsByTagName 652607.1 Ops/sec
querySelector 753439.3 Ops/sec
getElementsByClassName 648222.4 Ops/sec
getElementsByName 722606.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;