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

  • Object Literal