Run details:
Mozilla/5.0 (Linux; Android 9; SM-A530F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
getElementById 1581978.4 Ops/sec
getElementsByTagName 658268.8 Ops/sec
querySelector 968767.0 Ops/sec
getElementsByClassName 829143.0 Ops/sec
getElementsByName 939076.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;