Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-A720F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.117 Mobile Safari/537.36
Chrome Mobile 80
Android 8.0.0
Mobile
4 years ago
Test name Executions per second
Switch 16252.5 Ops/sec
Object Literal 16492.9 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal