Script Preparation code:
Tests:

Historical Performance Data aggregated from 28 community runs

Desktop Results:
Chrome 21 runs
sort
10.7M/s
toSorted
10.1M/s
View exact numbers
  • sort: 10,735,421 ops/sec
  • toSorted: 10,106,139 ops/sec
Firefox 7 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: 15 hours ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Safari/605.1.15
Safari 27 on Mac OS X 10.15.7
View result in a separate tab
toSorted
19.7M/s
sort
18.1M/s
View exact numbers
Test name Executions per second
toSorted 19,694,034 Ops/sec
sort 18,110,354 Ops/sec