Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SAMSUNG SM-A720F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/7.0 Chrome/59.0.3071.125 Mobile Safari/537.36
Chrome Mobile 59
Android 8.0.0
Mobile
3 years ago
Test name Executions per second
Switch 31620.6 Ops/sec
Object Literal 27892.6 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;