Run details:
Mozilla/5.0 (Linux; Android 5.1.1; A37f Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36 OPR/52.2.2517.139816
Opera Mobile 52
Android 5.1.1
Mobile
5 years ago
Test name Executions per second
Switch 16012.6 Ops/sec
Object Literal 15974.4 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;