Run details:
Mozilla/5.0 (Linux; Android 9; SM-G950F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36 OPR/52.2.2517.139816
Opera Mobile 52
Android
Mobile
5 years ago
Test name Executions per second
getElementById 1855462.2 Ops/sec
getElementsByTagName 454273.4 Ops/sec
querySelector 505567.9 Ops/sec
getElementsByClassName 480236.8 Ops/sec
getElementsByName 531732.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;