Run details:
Mozilla/5.0 (Linux; Android 9; moto g(7) play) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
4 years ago
Test name Executions per second
Switch 28225.4 Ops/sec
Object Literal 27424.4 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;