Run details:
Mozilla/5.0 (Android 11; Mobile; rv:99.0) Gecko/99.0 Firefox/99.0
Firefox Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
Switch 21285.1 Ops/sec
Object Literal 20222.1 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal