Run details:
Mozilla/5.0 (Linux; Android 7.0; SM-A510F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
Chrome Mobile 88
Android 7.0
Mobile
3 years ago
Test name Executions per second
Switch 9686.2 Ops/sec
Object Literal 8716.4 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;