Run details:
Mozilla/5.0 (Linux; Android 9; Unspecified Device) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.0.0 Mobile Safari/537.36
Chrome Mobile 86
Android
Mobile
4 years ago
Test name Executions per second
getElementById 2729679.8 Ops/sec
getElementsByTagName 1113574.4 Ops/sec
querySelector 1181085.9 Ops/sec
getElementsByClassName 836778.0 Ops/sec
getElementsByName 1223905.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName