golang/snappy

Is snappy slower than gzip in decompression

junghoahnsc opened this issue · 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,

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.

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