language-bench

F#

F# on .NET (CoreCLR): a functional-first language compiled to IL, then tiered JIT-compiled with dynamic PGO, with a generational garbage collector. These programs use the imperative subset (mutable locals and arrays) in the hot loops.

fsharp.org ↗
Overall speed rank
-
no data yet
Latest release
11.0
6 tracked releases since 2021
Strongest on
-
Weakest on
-

Performance by problem

Newest release (11.0), default build (dotnet build -c Release). 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

dotnet build -c Release default

Release build, default runtime settings (tiered compilation, dynamic PGO, concurrent workstation GC).

export DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NOLOGO=1; P={bin}.proj; mkdir -p $P && cp {harness}/Harness.fs $P/ && cp {src}/Program.fs $P/Problem.fs && sed "s/@TFM@/net$(dotnet --version | cut -d. -f1,2)/" /repo/languages/fsharp/app.fsproj > $P/app.fsproj && cd $P && dotnet build -c Release -o {bin} -v q -nologodotnet {bin}/app.dll

DOTNET_TieredCompilation=0

Every method is fully optimised on its first call: slower start-up, no tier-0 phase.

export DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NOLOGO=1; P={bin}.proj; mkdir -p $P && cp {harness}/Harness.fs $P/ && cp {src}/Program.fs $P/Problem.fs && sed "s/@TFM@/net$(dotnet --version | cut -d. -f1,2)/" /repo/languages/fsharp/app.fsproj > $P/app.fsproj && cd $P && dotnet build -c Release -o {bin} -v q -nologoDOTNET_TieredCompilation=0 dotnet {bin}/app.dll

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 F# 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. F# 11.0 2026-10-21
  2. F# 10.0 2025-11-11
    Long-term support release · Better JIT inlining and object stack allocation
  3. F# 9.0 2024-11-12
    Dynamic GC adaptation · LINQ and collection performance work
  4. F# 8.0 2023-11-14
    Long-term support release · Dynamic PGO enabled by default
  5. F# 7.0 2022-10-18
  6. F# 6.0 2021-10-22

Badge

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

PreviewF# rank on language-bench
Markdown[![F# on language-bench](https://stijnris.github.io/language-bench/badges/fsharp.svg)](https://stijnris.github.io/language-bench/languages/fsharp/)
HTML<a href="https://stijnris.github.io/language-bench/languages/fsharp/"><img src="https://stijnris.github.io/language-bench/badges/fsharp.svg" alt="F# on language-bench"></a>