Run details:
Mozilla/5.0 (Linux; Android 11; V2054) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
2 years ago
Test name Executions per second
getElementById 601649.9 Ops/sec
getElementsByTagName 282311.3 Ops/sec
querySelector 300052.1 Ops/sec
getElementsByClassName 201300.1 Ops/sec
getElementsByName 262026.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName