Script Preparation code:
Tests:

Historical Performance Data aggregated from 136 community runs

Desktop Results:
Chrome 116 runs
Reduce
317K/s
Math.max
115K/s

Fastest: Reduce (2.8x faster)

View exact numbers
  • Reduce: 316,532 ops/sec
  • Math.max: 114,761 ops/sec
Firefox 15 runs
Reduce
57K/s
Math.max
46K/s

Fastest: Reduce (1.2x faster)

View exact numbers
  • Reduce: 57,266 ops/sec
  • Math.max: 46,386 ops/sec
Mobile Results:
Chrome 5 runs
Reduce
131K/s
Math.max
70K/s

Fastest: Reduce (1.9x faster)

View exact numbers
  • Reduce: 131,349 ops/sec
  • Math.max: 70,161 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.max
    Reduce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: yesterday)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0
Firefox 153 on Windows
View result in a separate tab
Math.max
264K/s
Reduce
46K/s
View exact numbers
Test name Executions per second
Math.max 264,446 Ops/sec
Reduce 46,007 Ops/sec