Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Ubuntu
Desktop
8 months ago
Test name Executions per second
Switch 65934.6 Ops/sec
Object Literal 63419.2 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal