Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 [FBAN/FBIOS;FBDV/iPhone9,2;FBMD/iPhone;FBSN/iOS;FBSV/13.1.3;FBSS/3;FBID/phone;FBLC/pt_BR;FBOP/5;FBCR/TIM]
Mobile Safari 13
iOS 13.1.3
Mobile
5 years ago
Test name Executions per second
Switch 574186.2 Ops/sec
Object Literal 545386.0 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal