userver-framework / userver

Production-ready C++ Asynchronous Framework with rich functionality
https://userver.tech
Apache License 2.0
2.31k stars 268 forks source link

Add ZSTD decompression support #595

Closed IoplachkinI closed 1 month ago

IoplachkinI commented 2 months ago

Resolves issue #549

Benchmark results:

---------------------------------------------------------------
Benchmark                     Time             CPU   Iterations
---------------------------------------------------------------
ZstdDecompress/1024        4321 ns         4329 ns       161878
ZstdDecompress/2048        5288 ns         5293 ns       128786
ZstdDecompress/4096        7116 ns         7122 ns        97136
ZstdDecompress/8192       11499 ns        11502 ns        59946
ZstdDecompress/16384      16596 ns        16595 ns        42723
ZstdDecompress/32768      26929 ns        26926 ns        26055
GzipDecompress/1024       10459 ns        10457 ns        66482
GzipDecompress/2048       16552 ns        16550 ns        42502
GzipDecompress/4096       29337 ns        29338 ns        23916
GzipDecompress/8192       57317 ns        57314 ns        12272
GzipDecompress/16384     113640 ns       113633 ns         6156
GzipDecompress/32768     230311 ns       230269 ns         2952