language-bench

Benchmark problems

Each problem stresses a different part of a language implementation. Every problem has an exact expected output that all implementations must reproduce.

Binary Trees

Allocate and walk millions of short-lived binary trees (depth 14).

gc-heavymemory-bounddata-structures

Fannkuch-redux

Count pancake flips over all permutations of nine elements.

cpu-bounddata-structures

File processing

Stream a 49 MB CSV and aggregate it.

io-boundstringsdata-structures

Hash map

One million inserts/updates and one million lookups in a hash map.

memory-bounddata-structures

JSON parsing

Parse a 19 MB JSON document and aggregate its fields.

io-boundmemory-boundserializationstrings

Matrix multiply

Multiply two dense 256×256 matrices of doubles.

cpu-boundmemory-boundsimdmath

N-Body simulation

Advance the Jovian planets 1,000,000 steps with a symplectic integrator.

cpu-boundsimdmath

Parallel reduction

Count primes below 2,000,000 with 4 workers.

cpu-boundconcurrencymath

Prime sieve

Sieve of Eratosthenes up to ten million.

cpu-boundmemory-bound

Sorting

Sort two million pseudo-random 32-bit integers.

cpu-boundmemory-bounddata-structures

Startup

Time to start the runtime and print one line.

startup

String operations

Build, scan and transform a 6.5 MB multilingual string.

memory-boundstrings