Run details:
Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36
Chrome Mobile 85
Android 7.1.1
Mobile
4 years ago
Test name Executions per second
getElementById 474210.1 Ops/sec
getElementsByTagName 83477.2 Ops/sec
querySelector 81410.2 Ops/sec
getElementsByClassName 85680.9 Ops/sec
getElementsByName 92978.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;