Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36
Chrome Mobile 79
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
Switch 13426.9 Ops/sec
Object Literal 13710.5 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;