Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-G965F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Mobile Safari/537.36
Chrome Mobile 74
Android 8.0.0
Mobile
5 years ago
Test name Executions per second
Switch 72012.9 Ops/sec
Object Literal 69866.8 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal