Script Preparation code:
Tests:

Historical Performance Data aggregated from 39 community runs

Desktop Results:
Chrome 39 runs
For for max
3K/s
For for min
2K/s
Reduce for max
1K/s
Reduce for min
1K/s
Math.Max
1K/s
Math.Min
1K/s
For of for max
264/s
For of for min
253/s

Fastest: For for max (10.6x faster)

View exact numbers
  • For for max: 2,681 ops/sec
  • For for min: 2,431 ops/sec
  • Reduce for max: 1,224 ops/sec
  • Reduce for min: 1,221 ops/sec
  • Math.Max: 1,203 ops/sec
  • Math.Min: 1,173 ops/sec
  • For of for max: 264 ops/sec
  • For of for min: 253 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Windows
View result in a separate tab
For for max
8K/s
For for min
6K/s
Reduce for min
1K/s
Reduce for max
1K/s
Math.Max
493/s
Math.Min
464/s
For of for max
321/s
For of for min
318/s
View exact numbers
Test name Executions per second
For for max 8,342 Ops/sec
For for min 6,002 Ops/sec
Reduce for min 1,414 Ops/sec
Reduce for max 1,279 Ops/sec
Math.Max 493 Ops/sec
Math.Min 464 Ops/sec
For of for max 321 Ops/sec
For of for min 318 Ops/sec