snappy icon indicating copy to clipboard operation
snappy copied to clipboard

Is snappy slower than gzip in decompression

Open junghoahnsc opened this issue 8 years ago • 3 comments

Hello,

From my simple benchmark for a util that is using snappy/gzip for compression, I noticed that snappy is 10x faster than gzip in compression, but it's slower by 2x in decompression. I'm wondering if I'm using incorrectly or whether this is an expected performance.

Thanks,

junghoahnsc avatar Jul 22 '17 02:07 junghoahnsc

nvm. I forgot that compression performance highly depends on input. I used random bytes, but whenI used random base64 string, snappy was better than gzip.

junghoahnsc avatar Jul 24 '17 19:07 junghoahnsc

https://stackoverflow.com/a/44252865

jony4 avatar Apr 16 '20 10:04 jony4

https://github.com/google/snappy Is the performance of this repo the same as c++'s one?

junjihashimoto avatar Sep 19 '23 07:09 junjihashimoto