Run details:
Mozilla/5.0 (Linux; Android 11; M2102J20SG Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.101 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/356.0.0.28.112;]
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
Switch 65607.7 Ops/sec
Object Literal 43186.1 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal