Run details:
Mozilla/5.0 (Linux; Android 10; YAL-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
Switch Case 55465.0 Ops/sec
Object 84875.8 Ops/sec
Map 85696.8 Ops/sec
Array 66394.6 Ops/sec
Switch Case Indirect Value 36786.6 Ops/sec
Script Preparation code:
Tests:
  • Switch Case

  • Object

  • Map

  • Array

  • Switch Case Indirect Value


;