Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Moto G (5) Plus Build/OPS28.85-17-6-2; 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 26690.0 Ops/sec
Object Literal 25886.5 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal


;