Run details:
Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-N960F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.1 Chrome/75.0.3770.143 Mobile Safari/537.36
Chrome Mobile 75
Android
Mobile
2 years ago
Test name Executions per second
Switch 59904.1 Ops/sec
Object Literal 48354.6 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal