Run details:
Mozilla/5.0 (Linux; Android 11; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.82 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
getElementById 2154612.8 Ops/sec
getElementsByTagName 1205801.1 Ops/sec
querySelector 1347924.5 Ops/sec
getElementsByClassName 1174549.0 Ops/sec
getElementsByName 1388468.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName