Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 [FBAN/FBIOS;FBDV/iPhone10,6;FBMD/iPhone;FBSN/iOS;FBSV/13.3;FBSS/3;FBID/phone;FBLC/en_US;FBOP/5;FBCR/VIVO]
Mobile Safari 13
iOS 13.3
Mobile
4 years ago
Test name Executions per second
Switch 639870.8 Ops/sec
Object Function 576751.3 Ops/sec
Object Property 537270.6 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Function

  • Object Property