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 3 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.438×

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 C1.9991.978–2.025—1.000×
mzstd0.03970.03841–0.04121—50.355×

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.0041.954–2.06120.931.000×
mzstd0.05080.0492–0.05269826.1039.461×

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.3183.233–3.40218,836.831.000×
mzstd0.91380.9052–0.923668,394.933.631×

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 C14.414.03–14.8269,447.921.000×
mzstd9.8579.588–10.14101,451.541.461×

binary-64k

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

2,324 compressed → 65,536 restored bytes; compressed / original: 3.546%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C5.0784.936–5.23412,309.021.000×
mzstd3.5883.439–3.73917,418.341.415×

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.319.08–19.5551,808.661.000×
mzstd16.916.74–17.0759,174.841.142×

alice29

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

56,970 compressed → 152,089 restored bytes; compressed / original: 37.458%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C111.5107.9–115.61,300.261.000×
mzstd116.7113.6–120.81,242.720.956×

text-1m

Alice text repeated cyclically to 1 MiB.

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C116.8112.8–121.28,562.621.000×
mzstd136.1129.5–142.97,350.100.858×