Run details:
Mozilla/5.0 (Linux; Android 9; moto g(7) play Build/PPYS29.105-134-4; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.73 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/244.0.0.18.118;]
Chrome Mobile 77
Android
Mobile
5 years ago
Test name Executions per second
Switch 28763.5 Ops/sec
Object Literal 28697.5 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal