Run details:
Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0
Firefox Mobile 68
Android
Mobile
5 years ago
Test name Executions per second
getElementById 1722653.5 Ops/sec
getElementsByTagName 1339397.6 Ops/sec
querySelector 1425285.1 Ops/sec
getElementsByClassName 1215639.0 Ops/sec
getElementsByName 1982279.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName