aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/zstd/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libs/zstd/README.md')
-rw-r--r--contrib/libs/zstd/README.md38
1 files changed, 24 insertions, 14 deletions
diff --git a/contrib/libs/zstd/README.md b/contrib/libs/zstd/README.md
index 0f7478e106..d91ef5df1b 100644
--- a/contrib/libs/zstd/README.md
+++ b/contrib/libs/zstd/README.md
@@ -29,10 +29,10 @@ a list of known ports and bindings is provided on [Zstandard homepage](https://f
## Benchmarks
For reference, several fast compression algorithms were tested and compared
-on a desktop running Ubuntu 20.04 (`Linux 5.11.0-41-generic`),
-with a Core i7-9700K CPU @ 4.9GHz,
+on a desktop featuring a Core i7-9700K CPU @ 4.9GHz
+and running Ubuntu 20.04 (`Linux ubu20 5.15.0-101-generic`),
using [lzbench], an open-source in-memory benchmark by @inikep
-compiled with [gcc] 9.3.0,
+compiled with [gcc] 9.4.0,
on the [Silesia compression corpus].
[lzbench]: https://github.com/inikep/lzbench
@@ -41,24 +41,23 @@ on the [Silesia compression corpus].
| Compressor name | Ratio | Compression| Decompress.|
| --------------- | ------| -----------| ---------- |
-| **zstd 1.5.1 -1** | 2.887 | 530 MB/s | 1700 MB/s |
+| **zstd 1.5.6 -1** | 2.887 | 510 MB/s | 1580 MB/s |
| [zlib] 1.2.11 -1 | 2.743 | 95 MB/s | 400 MB/s |
-| brotli 1.0.9 -0 | 2.702 | 395 MB/s | 450 MB/s |
-| **zstd 1.5.1 --fast=1** | 2.437 | 600 MB/s | 2150 MB/s |
-| **zstd 1.5.1 --fast=3** | 2.239 | 670 MB/s | 2250 MB/s |
-| quicklz 1.5.0 -1 | 2.238 | 540 MB/s | 760 MB/s |
-| **zstd 1.5.1 --fast=4** | 2.148 | 710 MB/s | 2300 MB/s |
-| lzo1x 2.10 -1 | 2.106 | 660 MB/s | 845 MB/s |
-| [lz4] 1.9.3 | 2.101 | 740 MB/s | 4500 MB/s |
-| lzf 3.6 -1 | 2.077 | 410 MB/s | 830 MB/s |
-| snappy 1.1.9 | 2.073 | 550 MB/s | 1750 MB/s |
+| brotli 1.0.9 -0 | 2.702 | 395 MB/s | 430 MB/s |
+| **zstd 1.5.6 --fast=1** | 2.437 | 545 MB/s | 1890 MB/s |
+| **zstd 1.5.6 --fast=3** | 2.239 | 650 MB/s | 2000 MB/s |
+| quicklz 1.5.0 -1 | 2.238 | 525 MB/s | 750 MB/s |
+| lzo1x 2.10 -1 | 2.106 | 650 MB/s | 825 MB/s |
+| [lz4] 1.9.4 | 2.101 | 700 MB/s | 4000 MB/s |
+| lzf 3.6 -1 | 2.077 | 420 MB/s | 830 MB/s |
+| snappy 1.1.9 | 2.073 | 530 MB/s | 1660 MB/s |
[zlib]: https://www.zlib.net/
[lz4]: https://lz4.github.io/lz4/
The negative compression levels, specified with `--fast=#`,
offer faster compression and decompression speed
-at the cost of compression ratio (compared to level 1).
+at the cost of compression ratio.
Zstd can also offer stronger compression ratios at the cost of compression speed.
Speed vs Compression trade-off is configurable by small increments.
@@ -185,6 +184,17 @@ You can build and install zstd [vcpkg](https://github.com/Microsoft/vcpkg/) depe
The zstd port in vcpkg is kept up to date by Microsoft team members and community contributors.
If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
+### Conan
+
+You can install pre-built binaries for zstd or build it from source using [Conan](https://conan.io/). Use the following command:
+
+```bash
+conan install --requires="zstd/[*]" --build=missing
+```
+
+The zstd Conan recipe is kept up to date by Conan maintainers and community contributors.
+If the version is out of date, please [create an issue or pull request](https://github.com/conan-io/conan-center-index) on the ConanCenterIndex repository.
+
### Visual Studio (Windows)
Going into `build` directory, you will find additional possibilities: