Run details:
Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-G532MT) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/13.0 Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android 6.0.1
Mobile
3 years ago
Test name Executions per second
Switch 10271.1 Ops/sec
Object Literal 12295.1 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;