Run details:
Mozilla/5.0 (Linux; Android 7.0; MHA-L09) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36
Chrome Mobile 76
Android 7.0
Mobile
5 years ago
Test name Executions per second
getElementById 1168977.6 Ops/sec
getElementsByTagName 448196.5 Ops/sec
querySelector 504105.2 Ops/sec
getElementsByClassName 467603.1 Ops/sec
getElementsByName 482991.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName