Run details:
Mozilla/5.0 (Linux; Android 9; Redmi 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
getElementById 592425.4 Ops/sec
getElementsByTagName 306587.6 Ops/sec
querySelector 357014.8 Ops/sec
getElementsByClassName 309401.5 Ops/sec
getElementsByName 349758.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName