golang / snappy

The Snappy compression format in the Go programming language.
BSD 3-Clause "New" or "Revised" License
1.52k stars 164 forks source link

Is snappy slower than gzip in decompression #39

Open junghoahnsc opened 7 years ago

junghoahnsc commented 7 years ago

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 commented 7 years ago

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.

jony4 commented 4 years ago

https://stackoverflow.com/a/44252865

junjihashimoto commented 1 year ago

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