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 4 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.321×

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.2862.228–2.346—1.000×
mzstd0.04040.03942–0.04148—56.593×

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.9851.94–2.04121.141.000×
mzstd0.050110.04863–0.05187837.4039.611×

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.9542.887–3.03721,156.811.000×
mzstd0.90870.9014–0.916868,780.473.251×

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 C13.9813.84–14.1571,518.901.000×
mzstd9.369.166–9.583106,840.901.494×

binary-64k

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

3,909 compressed → 65,536 restored bytes; compressed / original: 5.965%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C50.3648.12–52.831,241.101.000×
mzstd43.8641.46–46.61,425.031.148×

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.619.31–19.9251,025.861.000×
mzstd17.2117.01–17.4158,121.111.139×

alice29

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

54,282 compressed → 152,089 restored bytes; compressed / original: 35.691%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C98.595.48–102.11,472.511.000×
mzstd101.499.9–103.31,429.830.971×

text-1m

Alice text repeated cyclically to 1 MiB.

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C114.1111.1–117.88,762.631.000×
mzstd130.9125.1–137.37,638.940.872×