Run details:
Mozilla/5.0 (Linux; Android 12; Redmi Note 8T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4844.73 Mobile Safari/537.36
Chrome Mobile 100
Android
Mobile
2 years ago
Test name Executions per second
Switch 29398.8 Ops/sec
Object Literal 21352.0 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal