Run details:
Mozilla/5.0 (Linux; Android 9; moto g(7) plus Build/PPWS29.98-111-5; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.96 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/246.0.0.49.121;]
Chrome Mobile 78
Android
Mobile
5 years ago
Test name Executions per second
Switch 42832.7 Ops/sec
Object Literal 41450.8 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal