Run details:
Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
getElementById 4191022.0 Ops/sec
getElementsByTagName 1669434.2 Ops/sec
querySelector 2318879.8 Ops/sec
getElementsByClassName 2124251.2 Ops/sec
getElementsByName 2488871.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;