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 15 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.573×

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.0692.006–2.138—1.000×
mzstd0.038560.03728–0.04011—53.656×

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.1272.065–2.19819.731.000×
mzstd0.05110.04961–0.05283821.1641.629×

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.922.86–2.98821,403.451.000×
mzstd0.89270.8851–0.901770,012.213.271×

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 C15.6515.12–16.263,903.511.000×
mzstd9.7339.499–9.983102,744.881.608×

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 C7.1716.843–7.5078,715.721.000×
mzstd4.6634.462–4.88713,402.881.538×

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.6719.36–20.0150,836.071.000×
mzstd16.5916.52–16.6860,261.621.185×

text-1m

Alice text repeated cyclically to 1 MiB.

51,817 compressed → 1,048,576 restored bytes; compressed / original: 4.942%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C104.1101.3–107.29,606.471.000×
mzstd104.1102.9–105.69,609.841.000×

alice29

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

49,610 compressed → 152,089 restored bytes; compressed / original: 32.619%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C103.7100.3–1081,398.451.000×
mzstd113.4108.8–118.81,279.280.915×