language-bench

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.

No benchmark sessions have been recorded yet.

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 -RTS

Every release (default build)

No benchmark sessions have been recorded yet.

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.

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Release highlights

  1. Haskell 9.12 2024-12-16
  2. Haskell 9.10 2024-05-10
  3. Haskell 9.8 2023-10-10
  4. Haskell 9.6 2023-03-10
  5. Haskell 9.4 2022-08-07
  6. Haskell 9.14

Badge

Show this language's overall rank in your README or website:

PreviewHaskell rank on language-bench
Markdown[![Haskell on language-bench](https://stijnris.github.io/language-bench/badges/haskell.svg)](https://stijnris.github.io/language-bench/languages/haskell/)
HTML<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>