Script Preparation code:
Tests:
  • Math.Min

  • Math.Max

  • Reduce for min

  • Reduce for max

  • For for min

  • For for max

  • For of for min

  • For of for max

  • MinMaxFor

  • MinMaxFunctions

  • Math.MinMax

  • Reducer

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.Min
    Math.Max
    Reduce for min
    Reduce for max
    For for min
    For for max
    For of for min
    For of for max
    MinMaxFor
    MinMaxFunctions
    Math.MinMax
    Reducer

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36
Chrome Mobile 114 on Android
View result in a separate tab
Test name Executions per second
Math.Min 227.6 Ops/sec
Math.Max 234.7 Ops/sec
Reduce for min 686.3 Ops/sec
Reduce for max 690.0 Ops/sec
For for min 136.9 Ops/sec
For for max 136.4 Ops/sec
For of for min 94.1 Ops/sec
For of for max 97.2 Ops/sec
MinMaxFor 44.7 Ops/sec
MinMaxFunctions 16.8 Ops/sec
Math.MinMax 106.7 Ops/sec
Reducer 27.4 Ops/sec


;