Run details:
Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-G985F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/14.0 Chrome/87.0.4280.141 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
Switch Case 24119.4 Ops/sec
Object 28574.3 Ops/sec
Map 30591.7 Ops/sec
Array 26862.7 Ops/sec
Switch Case Indirect Value 17295.9 Ops/sec
Script Preparation code:
Tests:
  • Switch Case

  • Object

  • Map

  • Array

  • Switch Case Indirect Value


;