Run details:
Mozilla/5.0 (Android 11; Mobile; rv:103.0) Gecko/103.0 Firefox/103.0
Firefox Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
getElementById 5341778.0 Ops/sec
getElementsByTagName 3882174.0 Ops/sec
querySelector 5987114.5 Ops/sec
getElementsByClassName 3626371.8 Ops/sec
getElementsByName 5332278.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;