Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juhp/hs-reverse-sort

Simple benchmarks for reverse sorting in Haskell base
https://github.com/juhp/hs-reverse-sort

Last synced: 17 days ago
JSON representation

Simple benchmarks for reverse sorting in Haskell base

Awesome Lists containing this project

README

        

# Descending sort in Haskell

Here are the benchmarks from [Roman Cheplyaka's nice article](https://ro-che.info/articles/2016-04-02-descending-sort-haskell), extended with `reverse . sort` and `sortWith`.

See also this related [hlint hint discussion](https://github.com/ndmitchell/hlint/issues/669).

For typical (newtype-based) sorting, the fastest is sortBy (or sortWith).