Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
sort
4.8M/s
manual compare
3.1M/s
localcompare
2.3M/s
date convert to timestamp + sort (timezone safe)
425K/s
date convert to date + sort a-b (timezone safe)
276K/s

Fastest: sort (17.5x faster)

View exact numbers
  • sort: 4,820,234 ops/sec
  • manual compare: 3,062,006 ops/sec
  • localcompare: 2,321,690 ops/sec
  • date convert to timestamp + sort (timezone safe): 424,519 ops/sec
  • date convert to date + sort a-b (timezone safe): 275,729 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
    localcompare
    manual compare
    date convert to date + sort a-b (timezone safe)
    date convert to timestamp + sort (timezone safe)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
sort
4.8M/s
manual compare
3.1M/s
localcompare
2.3M/s
date convert to timestamp + sort (timezone safe)
425K/s
date convert to date + sort a-b (timezone safe)
276K/s
View exact numbers
Test name Executions per second
sort 4,820,234 Ops/sec
manual compare 3,062,006 Ops/sec
localcompare 2,321,690 Ops/sec
date convert to timestamp + sort (timezone safe) 424,519 Ops/sec
date convert to date + sort a-b (timezone safe) 275,729 Ops/sec