Run details:
Mozilla/5.0 (Linux; Android 5.1; XT1058) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Mobile Safari/537.36
Chrome Mobile 78
Android 5.1
Mobile
5 years ago
Test name Executions per second
Switch 2258.5 Ops/sec
Object Literal 2490.2 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;