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 1 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.676×

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.0691.984–2.182—1.000×
mzstd0.03760.03706–0.03826—55.044×

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.969–2.04420.941.000×
mzstd0.047990.04755–0.04853874.4541.760×

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.4153.325–3.518,303.891.000×
mzstd1.0020.9869–1.01662,394.573.409×

binary-64k

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

2,537 compressed → 65,536 restored bytes; compressed / original: 3.871%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C5.2225.046–5.40111,967.811.000×
mzstd2.8462.781–2.9221,960.661.835×

repeated-1m

1 MiB of repeated a bytes.

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

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C14.1413.93–14.3870,740.381.000×
mzstd9.3239.173–9.496107,264.221.516×

random-1m

1 MiB of deterministic xorshift64 pseudorandom bytes.

1,048,610 compressed → 1,048,576 restored bytes; compressed / original: 100.003%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C18.8518.69–19.0353,051.961.000×
mzstd16.4516.29–16.6360,772.311.146×

alice29

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

59,657 compressed → 152,089 restored bytes; compressed / original: 39.225%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C96.491.21–102.11,504.561.000×
mzstd94.2692.55–96.551,538.741.023×

text-1m

Alice text repeated cyclically to 1 MiB.

61,206 compressed → 1,048,576 restored bytes; compressed / original: 5.837%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C99.8496.69–103.310,015.851.000×
mzstd111.9107.5–116.68,939.280.893×