Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows
Desktop
one year ago
Test name Executions per second
If-else 2 1099918080.0 Ops/sec
Switch 2 1119198976.0 Ops/sec
If-else 4 187395424.0 Ops/sec
Switch 4 148979056.0 Ops/sec
Tests:
  • If-else 2

  • Switch 2

  • If-else 4

  • Switch 4