level tuning
1 file changed
tree: 9552e0a50df1483b61371dd75ce9c73d4dbb7bdb
  1. lib/
  2. programs/
  3. visual/
  4. .gitattributes
  5. .gitignore
  6. .travis.yml
  7. Makefile
  8. NEWS
  9. README.md
README.md

Zstd, short for Zstandard, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level compression ratio.

It is provided as a BSD-license package, hosted on Github.

BranchStatus
masterBuild Status
devBuild Status

For a taste of its performance, here are a few benchmark numbers from a number of compression codecs suitable for real-time. The test was completed on a Core i7-5600U @ 2.6 GHz, using fsbench 0.14.3, an open-source benchmark program by m^2.

NameRatioC.speedD.speed
MB/sMB/s
zstd 0.32.858280670
zlib 1.2.8 -12.73070300
QuickLZ 1.5.1b62.237370415
LZO 2.062.106400580
LZ4 r1312.1014502100
Snappy 1.1.02.0913301100
LZF 3.62.077200560

Zstd can also offer stronger compression ratio at the cost of compression speed, but preserving its decompression speed. In the following test, a few compressors suitable for this scenario are selected (they offer very asymetric performance, useful when compression time has little importance). The test was completed on a Core i7-5600U @ 2.6 GHz, using benchmark 0.6.1, an open-source benchmark program by inikep.

NameRatioC.speedD.speed
MB/sMB/s
brotli -93.7294340
zstd 0.3 -93.44730640
zlib 1.2.8 -93.13310300
LZO 2.06 -9992.7901560
LZ4 r131 -92.720252100

Zstd compression speed is highly configurable, by small increment, to fit different situations. Its memory requirement can also be configured to fit into low-memory hardware configurations, or servers handling multiple connections/contexts in parallel.

Zstd entropy stage is provided by Huff0 and FSE, from Finite State Entrop library.

Zstd has not yet reached “stable” status. Specifically, it doesn‘t guarantee yet that its current compressed format will remain stable and supported in future versions. It may still change to adapt further optimizations still being investigated. That being said, the library is now pretty robust, able to withstand hazards situations, including invalid input. The library reliability has been tested using Fuzz Testing, with both internal tools and external ones. Therefore, it’s now safe to test Zstandard even within production environments.

“Stable Format” is projected sometimes early 2016.

Branch Policy

The “dev” branch is the one where all contributions will be merged before reaching “master”. If you plan to propose a patch, please commit into the “dev” branch or its own feature branch. Direct commit to “master” are not permitted.