Script Preparation code:
Tests:
  • if/else

  • switch/case

  • JSON

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0
Firefox 145 on Windows
View result in a separate tab
Test name Executions per second
if/else 3702.0 Ops/sec
switch/case 3802.2 Ops/sec
JSON 3718.5 Ops/sec