Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.141 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
getElementById 1799337.5 Ops/sec
getElementsByTagName 931694.4 Ops/sec
querySelector 1060363.2 Ops/sec
getElementsByClassName 904448.1 Ops/sec
getElementsByName 972098.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName