Script Preparation code:
Tests:

Historical Performance Data aggregated from 42 community runs

Desktop Results:
Chrome 42 runs
Array.sort
10.9M/s
Math min and max
4.2M/s

Fastest: Array.sort (2.6x faster)

View exact numbers
  • Array.sort: 10,890,596 ops/sec
  • Math min and max: 4,227,895 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
    Array.sort
    Math min and max

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0
Firefox 150 on Linux
View result in a separate tab
Math min and max
1232.7M/s
Array.sort
2.5M/s
View exact numbers
Test name Executions per second
Math min and max 1,232,667,264 Ops/sec
Array.sort 2,477,524 Ops/sec