Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    if-else-if-else
    switch-with-default-initialized
    switch-without-default

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131 on Windows
View result in a separate tab
switch-with-default-initialized
69.6M/s
switch-without-default
69.3M/s
if-else-if-else
67.1M/s
View exact numbers
Test name Executions per second
switch-with-default-initialized 69,576,760 Ops/sec
switch-without-default 69,345,888 Ops/sec
if-else-if-else 67,078,672 Ops/sec