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

Decompression of level 12 frames

Decoder overview · Benchmark index

Recorded run: long-20261109 (2026-11-09). CSV · Environment · Methodology and limits.

Level belongs to the C encoder that prepared the frame; decoders have no level setting. Both decoders restore the same bytes.

Median speed across 8 datasets

Median of per-dataset C mean time / decoder mean time ratios, with equal weight. Higher is faster; 1× matches C. No confidence interval is inferred for this across-dataset median.

DecoderMedian speed / C
zstd C1.000×
mzstd1.591×

Datasets are ranked by mzstd speed relative to C, highest first. Throughput counts restored bytes; empty input has latency only. Whiskers and intervals describe sampling uncertainty, not all host variation. Cold APIs include allocation and disposal. C reads the frame’s content size and decodes into a buffer of exactly that size; mzstd returns its own vector.

empty

Empty input; measures API overhead.

9 compressed → 0 restored bytes; compressed / original: undefined.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C2.2252.168–2.285—1.000×
mzstd0.044630.04284–0.04646—49.850×

tiny-text

44-byte quick-brown-fox sentence.

53 compressed → 44 restored bytes; compressed / original: 120.455%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C2.0311.978–2.09120.661.000×
mzstd0.051690.04981–0.05385811.7339.293×

random-64k

64 KiB prefix of the deterministic pseudorandom corpus.

65,546 compressed → 65,536 restored bytes; compressed / original: 100.015%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C2.9842.909–3.06720,948.481.000×
mzstd0.90150.8957–0.908469,327.133.309×

repeated-1m

1 MiB of repeated a bytes.

49 compressed → 1,048,576 restored bytes; compressed / original: 0.005%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C17.5417.09–17.9757,016.251.000×
mzstd10.5610.33–10.8194,653.901.660×

binary-64k

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

1,276 compressed → 65,536 restored bytes; compressed / original: 1.947%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C6.5876.267–6.9289,488.051.000×
mzstd4.334.168–4.50814,435.581.521×

random-1m

1 MiB of deterministic xorshift64 pseudorandom bytes.

1,048,609 compressed → 1,048,576 restored bytes; compressed / original: 100.003%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C19.9219.66–20.250,200.531.000×
mzstd17.1617.03–17.358,286.721.161×

text-1m

Alice text repeated cyclically to 1 MiB.

52,034 compressed → 1,048,576 restored bytes; compressed / original: 4.962%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C100.699.23–102.49,937.211.000×
mzstd104.1102.9–105.69,609.880.967×

alice29

Alice in Wonderland text from the Canterbury corpus (testdata/alice29.txt).

51,492 compressed → 152,089 restored bytes; compressed / original: 33.856%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C95.5691.75–99.981,517.851.000×
mzstd100.597.48–1041,442.870.951×