Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/79.0.3945.79 Chrome/79.0.3945.79 Safari/537.36
Chromium 79
Linux
Desktop
4 years ago
Test name Executions per second
Switch 104967.6 Ops/sec
Object Literal 104130.1 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal