Run details:
Mozilla/5.0 (Android 10; Mobile; rv:83.0) Gecko/83.0 Firefox/83.0
Firefox Mobile 83
Android
Mobile
4 years ago
Test name Executions per second
getElementById 2447833.0 Ops/sec
getElementsByTagName 1696101.5 Ops/sec
querySelector 3530631.8 Ops/sec
getElementsByClassName 1603654.2 Ops/sec
getElementsByName 2628958.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName