Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.min/max with spread
    forEach
    Reducer
    forEach with hasValidValues in loop
    apply

    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; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133 on Windows
View result in a separate tab
Reducer
1.8M/s
forEach
1.7M/s
forEach with hasValidValues in loop
1.0M/s
apply
688K/s
Math.min/max with spread
585K/s
View exact numbers
Test name Executions per second
Reducer 1,818,343 Ops/sec
forEach 1,667,456 Ops/sec
forEach with hasValidValues in loop 1,026,389 Ops/sec
apply 687,929 Ops/sec
Math.min/max with spread 584,869 Ops/sec