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 2445981.8 Ops/sec
getElementsByTagName 1697093.5 Ops/sec
querySelector 3543187.5 Ops/sec
getElementsByClassName 1566385.8 Ops/sec
getElementsByName 2633753.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName