Run details:
Mozilla/5.0 (Linux; Android 10; TECNO KE5k) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.99 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
2 years ago
Test name Executions per second
Switch 17078.8 Ops/sec
Object Literal 18788.2 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal