Run details:
Mozilla/5.0 (Linux; Android 8.1.0; SM-J530F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36
Chrome Mobile 71
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
Switch 29554.2 Ops/sec
Object Literal 30387.7 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;