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 22 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.428×

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.0291.978–2.091—1.000×
mzstd0.037550.03692–0.03833—54.034×

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.0151.961–2.08220.831.000×
mzstd0.053610.05132–0.05609782.7437.584×

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.8242.799–2.85222,133.471.000×
mzstd0.92830.9107–0.947467,327.793.042×

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.8515.34–16.3763,104.311.000×
mzstd9.3459.181–9.54107,009.861.696×

binary-64k

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

1,259 compressed → 65,536 restored bytes; compressed / original: 1.921%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C6.9296.669–7.1969,020.531.000×
mzstd5.9745.758–6.18310,461.551.160×

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 C2019.79–20.2250,006.481.000×
mzstd17.417.28–17.5557,460.351.149×

alice29

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

49,211 compressed → 152,089 restored bytes; compressed / original: 32.357%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C112.7108.4–117.31,287.221.000×
mzstd115.1110.2–120.91,259.630.979×

text-1m

Alice text repeated cyclically to 1 MiB.

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C120.1117.3–123.38,323.891.000×
mzstd126123.3–129.37,933.850.953×