Run details:
Mozilla/5.0 (Linux; Android 9; TA-1033) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Mobile Safari/537.36
Chrome Mobile 78
Android
Mobile
4 years ago
Test name Executions per second
getElementById 473677.8 Ops/sec
getElementsByTagName 200417.7 Ops/sec
querySelector 219731.2 Ops/sec
getElementsByClassName 198306.0 Ops/sec
getElementsByName 217654.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;