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.572×

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.1432.086–2.207—1.000×
mzstd0.039510.03816–0.04109—54.242×

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.0882.026–2.15520.101.000×
mzstd0.051060.0493–0.05306821.8740.897×

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 C3.3043.223–3.38718,914.431.000×
mzstd0.95910.9433–0.975765,168.063.445×

binary-64k

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

3,189 compressed → 65,536 restored bytes; compressed / original: 4.866%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C4.5954.44–4.76513,601.761.000×
mzstd2.8282.681–2.98322,098.001.625×

repeated-1m

1 MiB of repeated a bytes.

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C14.4514.1–14.8669,195.881.000×
mzstd9.519.305–9.736105,153.731.520×

random-1m

1 MiB of deterministic xorshift64 pseudorandom bytes.

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C19.0918.96–19.2352,383.771.000×
mzstd16.9116.78–17.0559,129.681.129×

alice29

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

85,658 compressed → 152,089 restored bytes; compressed / original: 56.321%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C78.6675.31–82.581,844.041.000×
mzstd80.7777.98–84.31,795.840.974×

text-1m

Alice text repeated cyclically to 1 MiB.

96,657 compressed → 1,048,576 restored bytes; compressed / original: 9.218%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C73.0771–75.4113,685.071.000×
mzstd78.4575.91–81.212,746.300.931×