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

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.9651.947–1.985—1.000×
mzstd0.037960.03724–0.03895—51.750×

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.9671.953–1.98221.341.000×
mzstd0.052930.05079–0.05523792.8137.155×

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.2143.133–3.29619,448.341.000×
mzstd1.021.009–1.03161,266.253.150×

binary-64k

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

2,442 compressed → 65,536 restored bytes; compressed / original: 3.726%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C4.7784.625–4.94713,081.991.000×
mzstd3.1253.009–3.25320,000.691.529×

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.97–14.3470,738.351.000×
mzstd9.4479.226–9.699105,850.501.496×

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 C19.1318.98–19.2952,284.361.000×
mzstd16.8416.67–17.0259,387.921.136×

text-1m

Alice text repeated cyclically to 1 MiB.

80,894 compressed → 1,048,576 restored bytes; compressed / original: 7.715%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C97.4393.2–101.910,263.741.000×
mzstd100.495.58–105.49,961.540.971×

alice29

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

71,645 compressed → 152,089 restored bytes; compressed / original: 47.107%.

DecoderMean µs95% mean interval µsDecoded MiB/sSpeed / C
zstd C92.2489.16–95.641,572.451.000×
mzstd96.4992.71–1011,503.170.956×