Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
getElementById 1292091.6 Ops/sec
getElementsByClassName 938849.8 Ops/sec
getElementsByName 963235.0 Ops/sec
querySelectorAll 317633.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByClassName

  • getElementsByName

  • querySelectorAll