Run details:
Mozilla/5.0 (Linux; Android 11; SM-A505FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.66 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
getElementById 1490662.5 Ops/sec
getElementsByTagName 825837.4 Ops/sec
querySelector 749238.2 Ops/sec
getElementsByClassName 872561.6 Ops/sec
getElementById unique 1260868.4 Ops/sec
querySelector (unique id) 690684.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementById unique

  • querySelector (unique id)


;