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 11 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.542×

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.072.023–2.123—1.000×
mzstd0.040460.03937–0.04168—51.172×

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.1052.049–2.16519.931.000×
mzstd0.052860.05085–0.05507793.8639.825×

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.9372.867–3.01821,283.041.000×
mzstd0.96270.9522–0.974164,923.893.050×

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 C7.2246.885–7.5628,651.431.000×
mzstd4.5384.334–4.76113,772.721.592×

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 C15.2614.84–15.7165,533.341.000×
mzstd10.239.961–10.5297,718.671.491×

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.9819.78–20.250,044.731.000×
mzstd17.9617.76–18.1555,690.811.113×

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 C111.5107.3–1168,965.691.000×
mzstd108104.9–111.99,256.131.032×

alice29

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

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C92.4489.81–95.561,569.031.000×
mzstd99.896.2–1041,453.360.926×