Run details:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A6003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Mobile Safari/537.36
Chrome Mobile 78
Android
Mobile
5 years ago
Test name Executions per second
getElementById 2742678.8 Ops/sec
getElementsByTagName 994268.0 Ops/sec
querySelector 1129590.5 Ops/sec
getElementsByClassName 990302.2 Ops/sec
getElementsByName 1127892.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName