Run details:
Mozilla/5.0 (Linux; Android 10; SM-N960F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
getElementById 1650872.4 Ops/sec
getElementsByTagName 655171.6 Ops/sec
querySelector 930496.4 Ops/sec
getElementsByClassName 765863.1 Ops/sec
getElementsByName 785026.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName