Script Preparation code:
Tests:
  • if/if

  • if/else if

  • switch case

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    if/if
    if/else if
    switch case

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 28 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0
Chrome 146 on Windows
View result in a separate tab
Test name Executions per second
if/if 104835888.0 Ops/sec
if/else if 110078568.0 Ops/sec
switch case 108546736.0 Ops/sec