Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
Firefox 89
Linux
Desktop
3 years ago
Test name Executions per second
Switch Case 54464.8 Ops/sec
Object 53464.1 Ops/sec
Map 52489.2 Ops/sec
Array 54067.9 Ops/sec
Switch Case Indirect Value 53600.0 Ops/sec
Script Preparation code:
Tests:
  • Switch Case

  • Object

  • Map

  • Array

  • Switch Case Indirect Value


;