Run details:
Mozilla/5.0 (Linux; Android 9; H8416) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android
Mobile
5 years ago
Test name Executions per second
getElementById 2833603.0 Ops/sec
getElementsByTagName 1080906.4 Ops/sec
querySelector 1182664.2 Ops/sec
getElementsByClassName 1119347.0 Ops/sec
getElementsByName 1201936.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName