Run details:
Mozilla/5.0 (Linux; Android 9; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.62 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
Switch 54666.6 Ops/sec
Object Literal 33299.3 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;