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 5 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.589×

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.1942.127–2.263—1.000×
mzstd0.043390.04148–0.04542—50.557×

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.0021.957–2.06420.961.000×
mzstd0.05130.04955–0.05327818.0339.030×

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.9692.91–3.03521,052.201.000×
mzstd0.94790.9289–0.969665,935.793.132×

binary-64k

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

1,270 compressed → 65,536 restored bytes; compressed / original: 1.938%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C6.5496.279–6.8319,542.761.000×
mzstd4.0593.981–4.16315,396.371.613×

repeated-1m

1 MiB of repeated a bytes.

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C14.4814.16–14.8569,069.471.000×
mzstd9.2539.119–9.411108,073.491.565×

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.8619.64–20.150,345.471.000×
mzstd17.1917.03–17.3758,159.581.155×

text-1m

Alice text repeated cyclically to 1 MiB.

54,185 compressed → 1,048,576 restored bytes; compressed / original: 5.167%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C121117.3–1258,264.801.000×
mzstd120117.6–1238,331.921.008×

alice29

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

53,372 compressed → 152,089 restored bytes; compressed / original: 35.093%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C92.7591.47–94.261,563.771.000×
mzstd99.1497.16–101.51,462.980.936×