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 1838651.2 Ops/sec
getElementsByTagName 485238.2 Ops/sec
querySelector 552185.1 Ops/sec
getElementsByClassName 476263.9 Ops/sec
getElementsByName 545261.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;