Run details:
Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A505FM) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/16.0 Chrome/92.0.4515.166 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
2 years ago
Test name Executions per second
Switch Case 22647.5 Ops/sec
Object 28996.7 Ops/sec
Map 28405.4 Ops/sec
Array 24015.2 Ops/sec
Switch Case Indirect Value 13269.2 Ops/sec
Script Preparation code:
Tests:
  • Switch Case

  • Object

  • Map

  • Array

  • Switch Case Indirect Value


;