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

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.2272.081–2.408—1.000×
mzstd0.040640.03921–0.04226—54.790×

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.031.988–2.07920.671.000×
mzstd0.048420.04777–0.04923866.6641.929×

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.8272.805–2.85622,104.811.000×
mzstd0.91580.9033–0.929668,247.693.087×

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 C14.7514.29–15.2567,815.921.000×
mzstd9.5389.33–9.767104,840.921.546×

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.7656.434–7.1079,238.261.000×
mzstd4.6154.361–4.89113,543.221.466×

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.6619.34–20.0250,855.591.000×
mzstd17.2216.99–17.558,087.901.142×

text-1m

Alice text repeated cyclically to 1 MiB.

52,804 compressed → 1,048,576 restored bytes; compressed / original: 5.036%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C107.5106.4–1099,303.371.000×
mzstd110.2109.6–1119,070.880.975×

alice29

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

53,195 compressed → 152,089 restored bytes; compressed / original: 34.976%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C101.498.18–105.31,430.871.000×
mzstd108.1104.6–112.21,342.040.938×