Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Linux
Desktop
8 months ago
Test name Executions per second
Switch 110632.8 Ops/sec
Object Literal 89073.2 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal