Run details:
Mozilla/5.0 (Linux; Android 10; ONEPLUS A6010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
getElementById 2701035.0 Ops/sec
getElementsByTagName 1125864.6 Ops/sec
querySelector 1472816.1 Ops/sec
getElementsByClassName 1345067.8 Ops/sec
getElementsByName 1528252.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName