Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
just spread
5K/s
regular sort
482/s
toSorted
451/s
spread and sort
397/s

Fastest: just spread (13.4x faster)

View exact numbers
  • just spread: 5,336 ops/sec
  • regular sort: 482 ops/sec
  • toSorted: 451 ops/sec
  • spread and sort: 397 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
    regular sort
    toSorted
    spread and sort
    just spread

    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_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Mac OS X 10.15.7
View result in a separate tab
just spread
183K/s
toSorted
2K/s
regular sort
1K/s
spread and sort
1K/s
View exact numbers
Test name Executions per second
just spread 182,689 Ops/sec
toSorted 1,637 Ops/sec
regular sort 1,488 Ops/sec
spread and sort 1,473 Ops/sec