Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Switch Case 56916.2 Ops/sec
Object 77289.2 Ops/sec
Map 79923.6 Ops/sec
Array 68114.8 Ops/sec
Switch Case Indirect Value 43610.1 Ops/sec
Script Preparation code:
Tests:
  • Switch Case

  • Object

  • Map

  • Array

  • Switch Case Indirect Value


;