Script Preparation code:
Tests:

Historical Performance Data aggregated from 25 community runs

Desktop Results:
Chrome 20 runs
sort
10.7M/s
toSorted
9.9M/s
View exact numbers
  • sort: 10,714,774 ops/sec
  • toSorted: 9,925,817 ops/sec
Firefox 5 runs
toSorted
10.8M/s
sort
8.9M/s

Fastest: toSorted (1.2x faster)

View exact numbers
  • toSorted: 10,814,508 ops/sec
  • sort: 8,943,186 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
    sort
    toSorted

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 14 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Chrome 150 on Mac OS X 10.15.7
View result in a separate tab
sort
53.6M/s
toSorted
22.4M/s
View exact numbers
Test name Executions per second
sort 53,643,328 Ops/sec
toSorted 22,417,590 Ops/sec