Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Windows
Desktop
3 months ago
Test name Executions per second
switch 3643612.5 Ops/sec
simple if else 4398175.0 Ops/sec
Tests:
  • switch

  • simple if else