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 13 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.492×

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.2592.196–2.323—1.000×
mzstd0.040260.03867–0.04205—56.115×

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 C1.9651.938–1.99621.361.000×
mzstd0.05360.05139–0.056782.8436.654×

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.864–2.98321,405.601.000×
mzstd0.910.8992–0.921768,684.173.209×

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.515.08–15.9564,516.251.000×
mzstd9.9359.664–10.23100,654.741.560×

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.7236.445–7.0239,296.291.000×
mzstd4.7234.488–4.98213,232.541.423×

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.6319.34–19.9350,950.511.000×
mzstd16.9316.69–17.259,062.321.159×

text-1m

Alice text repeated cyclically to 1 MiB.

51,847 compressed → 1,048,576 restored bytes; compressed / original: 4.945%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C105101.6–109.19,522.541.000×
mzstd104.8103–107.49,541.631.002×

alice29

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

49,705 compressed → 152,089 restored bytes; compressed / original: 32.682%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C104.1100.4–108.51,392.901.000×
mzstd105.7104.1–107.71,372.450.985×