Run details:
Mozilla/5.0 (Android 9; Mobile; rv:65.0) Gecko/65.0 Firefox/65.0
Firefox Mobile 65
Android
Mobile
5 years ago
Test name Executions per second
getElementById 1460516.2 Ops/sec
getElementsByTagName 682953.2 Ops/sec
querySelector 737565.6 Ops/sec
getElementsByClassName 707103.0 Ops/sec
getElementsByName 1295660.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName