Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Is snappy slower than gzip in decompression #39

Open
junghoahnsc opened this issue Jul 22, 2017 · 3 comments
Open

Is snappy slower than gzip in decompression #39

junghoahnsc opened this issue Jul 22, 2017 · 3 comments

Comments

@junghoahnsc
Copy link

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
Copy link
Author

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
Copy link

jony4 commented Apr 16, 2020

@junjihashimoto
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants