-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update zstd to version 1.5.0 #106
Conversation
Updating zstd lib and removing deprecated files
Thanks for the PR! Do you mind double checking what commit you pulled the files from ? I'm hypothesizing that you might have pulled files from the Do you mind pulling the files from facebook/zstd@a488ba1 instead ? |
That appears to be exactly what happened. I just pulled the latest code from facebook/zstd@a488ba1 and committed to the branch. Reran my performance results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks great, thanks for upgrading to 1.5.0!
The results with the payload mr from silesia corpus) are actually great on Mac:
goos: darwin
goarch: amd64
pkg: github.com/DataDog/zstd
cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
name old time/op new time/op delta
CtxCompression-16 92.9ms ± 1% 70.6ms ± 1% -23.99% (p=0.008 n=5+5)
CtxDecompression-16 10.9ms ± 1% 10.3ms ± 1% -5.42% (p=0.008 n=5+5)
StreamCompression-16 102ms ± 1% 80ms ± 1% -21.13% (p=0.008 n=5+5)
StreamDecompression-16 13.0ms ± 1% 12.5ms ± 2% -3.77% (p=0.008 n=5+5)
Compression-16 92.6ms ± 0% 71.2ms ± 1% -23.19% (p=0.008 n=5+5)
Decompression-16 10.8ms ± 0% 10.3ms ± 2% -4.51% (p=0.008 n=5+5)
name old speed new speed delta
CtxCompression-16 107MB/s ± 1% 141MB/s ± 1% +31.56% (p=0.008 n=5+5)
CtxDecompression-16 915MB/s ± 1% 967MB/s ± 1% +5.72% (p=0.008 n=5+5)
StreamCompression-16 97.8MB/s ± 1% 124.0MB/s ± 1% +26.79% (p=0.008 n=5+5)
StreamDecompression-16 767MB/s ± 1% 797MB/s ± 2% +3.92% (p=0.008 n=5+5)
Compression-16 108MB/s ± 0% 140MB/s ± 1% +30.19% (p=0.008 n=5+5)
Decompression-16 925MB/s ± 0% 969MB/s ± 2% +4.74% (p=0.008 n=5+5)
(-20% on Compression, -~3-5% on Decompression)
Pull latest C code from https://github.com/facebook/zstd/
This is the code as of https://github.com/facebook/zstd/tree/v1.5.0 (facebook/zstd@a488ba1)
Similar to #73 (comment) to pull changes with edits to flatten the directory structure
Benchmark on a Windows (i7-7700k 4.2GHz w/ 32GB) for mr from http://sun.aei.polsl.pl/~sdeor/index.php?page=silesia:
Looks like overall performance improvements across the board.