HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 60 community runs

Desktop Results:
Chrome 52 runs
Math.max
25K/s
_.max
12K/s

Fastest: Math.max (2.0x faster)

View exact numbers
  • Math.max: 25,334 ops/sec
  • _.max: 12,469 ops/sec
Firefox 8 runs
Math.max
9K/s
_.max
4K/s

Fastest: Math.max (2.5x faster)

View exact numbers
  • Math.max: 8,835 ops/sec
  • _.max: 3,580 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
    _.max
    Math.max

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0
Firefox 142 on Mac OS X 10.15
View result in a separate tab
Math.max
15K/s
_.max
7K/s
View exact numbers
Test name Executions per second
Math.max 14,698 Ops/sec
_.max 6,785 Ops/sec