Run details:
Mozilla/5.0 (Android 10; Mobile; rv:77.0) Gecko/77.0 Firefox/77.0
Firefox Mobile 77
Android
Mobile
4 years ago
Test name Executions per second
Switch 36890.9 Ops/sec
Object Literal 34997.7 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal