Run details:
Mozilla/5.0 (Android 12; Mobile; rv:101.0) Gecko/101.0 Firefox/101.0
Firefox Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
Switch 31573.2 Ops/sec
Object Literal 28856.1 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal