Run details:
Mozilla/5.0 (Android 7.0; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0
Firefox Mobile 68
Android 7.0
Mobile
4 years ago
Test name Executions per second
getElementById 910313.0 Ops/sec
getElementsByTagName 740809.1 Ops/sec
querySelector 795781.1 Ops/sec
getElementsByClassName 738350.6 Ops/sec
getElementsByName 1931815.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName