Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Linux
Desktop
17 days ago
Test name Executions per second
Switch 32566.4 Ops/sec
Object Literal 111697.1 Ops/sec
Array Literal 104478.0 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal

  • Array Literal