Run details:
Mozilla/5.0 (Android 9; Mobile; rv:91.0) Gecko/91.0 Firefox/91.0
Firefox Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
getElementById 2728993.5 Ops/sec
getElementsByTagName 2084237.8 Ops/sec
querySelector 2603718.8 Ops/sec
getElementsByClassName 1961639.9 Ops/sec
getElementsByName 2806536.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName