Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_0_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/19A404 [FBAN/FBIOS;FBDV/iPhone14,5;FBMD/iPhone;FBSN/iOS;FBSV/15.0.2;FBSS/3;FBID/phone;FBLC/vi_VN;FBOP/5]
Mobile Safari 15
iOS 15.0.2
Mobile
2 years ago
Test name Executions per second
Switch 1558570.5 Ops/sec
Object Literal 1389469.8 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;