Run details:
Mozilla/5.0 (Linux; Android 10; RMX1851 Build/QKQ1.190918.001; 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 42292.2 Ops/sec
Object Literal 22643.9 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal