Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compression quality 6

Benchmark index · Median overview · ← Quality 5 · Quality 7 →

Recorded run: enc-2026-10-30-amd (2026-10-30). Raw results · Environment · Run analysis.

Median across all datasets

Each of the eight datasets has equal weight, including empty and tiny input. Speed / C = C mean latency / implementation mean latency; output / C = implementation bytes / C bytes. We take the median of these eight per-dataset ratios separately for speed and size. 1× matches C; higher speed and lower output are better. These are medians across datasets, not median sample latencies, and do not imply equal compressed size or statistical significance.

ImplementationMedian speed / C ↑Median output / C ↓Datasets
Google C1.000×1.000×8
mbrotli1.008×1.000×8
Rust brotli0.404×1.000×8
SIMD Brotli0.344×1.000×8
Measurement setup and interpretation

Google C Brotli 1.2.0, mbrotli at the recorded optimized checkout, Rust brotli 9.0.0, and SIMD Brotli 10.0.1 are compared at this quality. Burli supports only qualities 0–5; it has no results at this quality.

These are cold native API measurements: construction, allocation, compression, and disposal. Generic mode, window 22, known input size; 20 samples, 1 s warmup, at least 3 s measurement. Host: AMD Ryzen 9 7950X (two KVM vCPUs), one benchmark process at a time pinned to logical CPU 1; codec calls and encoder/decoder sweeps ran serially; no concurrent builds, tests, fuzzers or profilers; unset; ordinary Cargo release defaults; runtime SIMD dispatch. Rust brotli and SIMD Brotli include their native 4 KiB I/O adapters.

Chart whiskers and table intervals describe 95% confidence bounds on mean timing. They do not capture all host or allocator variation. Throughput bounds are transformed latency bounds. Output / input is compressed bytes divided by input bytes; smaller is better, and values above 100% mean expansion. For empty input, throughput and output / input are undefined (—). See the run analysis for measurement limitations.

Dataset details

Ordered by mbrotli speed / fastest competing implementation, highest first; all eight datasets are shown. This order uses recorded mean latency, not statistical significance. Bars start at zero.

repeated-1m · tiny-text · text-1m · alice29 · random-1m · binary-64k · empty · random-64k

repeated-1m

1 MiB of repeated a bytes. Input: 1,048,576 bytes.

mbrotli speed / fastest peer (Google C): 4.036×; output: 13 / 13 bytes.

Exact measurements and confidence bounds
ImplementationMean, µs95% mean interval, µsMiB/sOutput bytesOutput / inputSpeed / C
Google C473.4473–4742,112.56130.001%1.000×
mbrotli117.3117.1–117.48,526.35130.001%4.036×
Rust brotli961957.3–965.11,040.61130.001%0.493×
SIMD Brotli1,1981,194–1,202834.99130.001%0.395×

tiny-text

44-byte quick-brown-fox sentence. Input: 44 bytes.

mbrotli speed / fastest peer (Google C): 1.410×; output: 48 / 48 bytes.

Exact measurements and confidence bounds
ImplementationMean, µs95% mean interval, µsMiB/sOutput bytesOutput / inputSpeed / C
Google C4.6414.637–4.6479.0448109.091%1.000×
mbrotli3.2913.288–3.29412.7548109.091%1.410×
Rust brotli21.4821.46–21.51.9548109.091%0.216×
SIMD Brotli26.126.07–26.121.6148109.091%0.178×

text-1m

Alice text repeated cyclically to 1 MiB. Input: 1,048,576 bytes.

mbrotli speed / fastest peer (Google C): 1.166×; output: 50,823 / 50,823 bytes.

Exact measurements and confidence bounds
ImplementationMean, µs95% mean interval, µsMiB/sOutput bytesOutput / inputSpeed / C
Google C3,0133,009–3,017331.9050,8234.847%1.000×
mbrotli2,5842,577–2,594386.9350,8234.847%1.166×
Rust brotli4,6794,652–4,705213.7451,4214.904%0.644×
SIMD Brotli4,5064,495–4,518221.9550,8304.848%0.669×

alice29

Vendored Alice in Wonderland text. Input: 152,089 bytes.

mbrotli speed / fastest peer (Google C): 1.043×; output: 51,967 / 51,967 bytes.

Exact measurements and confidence bounds
ImplementationMean, µs95% mean interval, µsMiB/sOutput bytesOutput / inputSpeed / C
Google C2,6332,631–2,63555.0851,96734.169%1.000×
mbrotli2,5232,522–2,52557.4851,96734.169%1.043×
Rust brotli3,7283,718–3,73638.9151,96934.170%0.706×
SIMD Brotli3,7023,694–3,71239.1851,96934.170%0.711×

random-1m

1 MiB of deterministic xorshift64 pseudorandom bytes. Input: 1,048,576 bytes.

mbrotli speed / fastest peer (Google C): 0.972×; output: 1,048,581 / 1,048,581 bytes.

Exact measurements and confidence bounds
ImplementationMean, µs95% mean interval, µsMiB/sOutput bytesOutput / inputSpeed / C
Google C1,2511,249–1,254799.081,048,581100.000%1.000×
mbrotli1,2881,287–1,289776.501,048,581100.000%0.972×
Rust brotli2,9242,915–2,934341.981,048,581100.000%0.428×
SIMD Brotli2,7732,750–2,800360.591,048,581100.000%0.451×

binary-64k

64 KiB of structured binary bytes: ((i / 16) XOR i) modulo 256. Input: 65,536 bytes.

mbrotli speed / fastest peer (Google C): 0.715×; output: 1,588 / 1,588 bytes.

Exact measurements and confidence bounds
ImplementationMean, µs95% mean interval, µsMiB/sOutput bytesOutput / inputSpeed / C
Google C74.7274.59–74.83836.481,5882.423%1.000×
mbrotli104.5104.2–104.7598.331,5882.423%0.715×
Rust brotli251.5250.4–252.9248.501,5882.423%0.297×
SIMD Brotli358357.3–358.7174.601,5882.423%0.209×

empty

Empty input; measures API overhead. Input: 0 bytes.

mbrotli speed / fastest peer (Google C): 0.518×; output: 1 / 1 bytes.

Exact measurements and confidence bounds
ImplementationMean, ns95% mean interval, nsMiB/sOutput bytesOutput / inputSpeed / C
Google C17.9117.86–17.97—1—1.000×
mbrotli34.5734.33–34.98—1—0.518×
Rust brotli1.616e+041.615e+04–1.618e+04—1—0.001×
SIMD Brotli1.981e+041.98e+04–1.983e+04—1—0.001×

random-64k

64 KiB prefix of the deterministic pseudorandom corpus. Input: 65,536 bytes.

mbrotli speed / fastest peer (Google C): 0.485×; output: 65,540 / 65,540 bytes.

Exact measurements and confidence bounds
ImplementationMean, µs95% mean interval, µsMiB/sOutput bytesOutput / inputSpeed / C
Google C76.5976.5–76.69816.0665,540100.006%1.000×
mbrotli158157.7–158.2395.6565,540100.006%0.485×
Rust brotli201.8200.3–203.1309.7565,540100.006%0.380×
SIMD Brotli262.1261.7–262.6238.4565,540100.006%0.292×