Run details:
Mozilla/5.0 (Linux; Android 9; SM-T510) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36
Chrome 89
Android
Tablet
3 years ago
Test name Executions per second
getElementById 839037.9 Ops/sec
getElementsByTagName 374498.3 Ops/sec
querySelector 538212.9 Ops/sec
getElementsByClassName 462825.6 Ops/sec
getElementsByName 520831.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;