Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5 Plus Build/OPM1.171019.019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.96 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/247.0.0.42.116;]
Chrome Mobile 78
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
Switch 26773.7 Ops/sec
Object Literal 26410.4 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal