Run details:
Mozilla/5.0 (Linux; Android 5.1; XT1058) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Mobile Safari/537.36
Chrome Mobile 79
Android 5.1
Mobile
4 years ago
Test name Executions per second
Switch 3743.6 Ops/sec
Object Literal 3716.4 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal