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 6 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.565×

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.1262.067–2.191—1.000×
mzstd0.039940.03888–0.04116—53.218×

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.9991.966–2.03820.991.000×
mzstd0.050210.04866–0.05204835.7439.821×

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.1213.042–3.20120,026.431.000×
mzstd0.89810.8927–0.904569,589.563.475×

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.5236.234–6.8359,582.021.000×
mzstd4.1124.02–4.23215,198.301.586×

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.3714.05–14.7469,600.811.000×
mzstd9.3059.136–9.507107,468.051.544×

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.0118.81–19.2452,611.421.000×
mzstd16.416.29–16.5260,984.311.159×

text-1m

Alice text repeated cyclically to 1 MiB.

53,196 compressed → 1,048,576 restored bytes; compressed / original: 5.073%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C109.1106.6–112.49,164.101.000×
mzstd119.8115.6–124.38,348.540.911×

alice29

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

53,111 compressed → 152,089 restored bytes; compressed / original: 34.921%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C89.4888.58–90.671,621.051.000×
mzstd107.8102.8–1131,345.830.830×