Haskell
Haskell compiled ahead-of-time by GHC: lazy, purely functional, with a generational copying garbage collector and green threads on top of the multi-threaded runtime.
www.haskell.org/ghc ↗- Overall speed rank
- -
- no data yet
- Latest release
- 9.14
- 6 tracked releases since 2022
- Strongest on
- -
- Weakest on
- -
Performance by problem
Newest release (9.14), default build (ghc -O2 -threaded). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Build settings
ghc -O2 -threaded default
Optimising build with the threaded runtime (needed for the parallel workload; default heap settings).
mkdir -p {bin}.o {bin}.src && cp {harness}/Contract.hs {harness}/Harness.hs {bin}.src/ && cp {src}/main.hs {bin}.src/Problem.hs && cd {bin}.src && ghc -O2 -threaded -rtsopts -outputdir {bin}.o -o {bin} Harness.hs{bin}ghc -O2 -threaded +RTS -A64m
Same binary, 64 MB allocation area: fewer minor collections for allocation-heavy code.
mkdir -p {bin}.o {bin}.src && cp {harness}/Contract.hs {harness}/Harness.hs {bin}.src/ && cp {src}/main.hs {bin}.src/Problem.hs && cd {bin}.src && ghc -O2 -threaded -rtsopts -outputdir {bin}.o -o {bin} Harness.hs{bin} +RTS -A64m -RTSEvery release (default build)
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Speed across releases
Did Haskell get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Release highlights
- Haskell 9.12 2024-12-16
- Haskell 9.10 2024-05-10
- Haskell 9.8 2023-10-10
- Haskell 9.6 2023-03-10
- Haskell 9.4 2022-08-07
- Haskell 9.14
Badge
Show this language's overall rank in your README or website:
[](https://stijnris.github.io/language-bench/languages/haskell/)<a href="https://stijnris.github.io/language-bench/languages/haskell/"><img src="https://stijnris.github.io/language-bench/badges/haskell.svg" alt="Haskell on language-bench"></a>