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 57214.5 Ops/sec
Object 85667.3 Ops/sec
Map 82151.4 Ops/sec
Array 65166.0 Ops/sec
Switch Case Indirect Value 35549.3 Ops/sec
Script Preparation code:
Tests:
  • Switch Case

  • Object

  • Map

  • Array

  • Switch Case Indirect Value


;