Run details:
Mozilla/5.0 (Android 9; Mobile; rv:66.0) Gecko/66.0 Firefox/66.0
Firefox Mobile 66
Android
Mobile
5 years ago
Test name Executions per second
getElementById 1937289.4 Ops/sec
getElementsByTagName 938944.2 Ops/sec
querySelector 1159543.6 Ops/sec
getElementsByClassName 997669.9 Ops/sec
getElementsByName 1555426.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName