- Notifications
You must be signed in to change notification settings - Fork335
zstd: Improve "best" compression#677
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
```benchstat -delta-test none old2.txt new2.txtname old time/op new time/op deltaEncoder_EncodeAllXML-16 13.3ms ± 0% 13.0ms ± 0% -2.11%Encoder_EncodeAllSimple/fastest-16 229µs ± 0% 227µs ± 0% -1.08%Encoder_EncodeAllSimple/default-16 343µs ± 0% 371µs ± 0% +8.13%Encoder_EncodeAllSimple/better-16 402µs ± 0% 393µs ± 0% -2.33%Encoder_EncodeAllSimple/best-16 6.41ms ± 0% 2.72ms ± 0% -57.48% <====Encoder_EncodeAllSimple4K/fastest-16 2.70µs ± 0% 2.56µs ± 0% -5.26%Encoder_EncodeAllSimple4K/default-16 33.1µs ± 0% 33.5µs ± 0% +1.30%Encoder_EncodeAllSimple4K/better-16 39.3µs ± 0% 38.8µs ± 0% -1.12%Encoder_EncodeAllSimple4K/best-16 732µs ± 0% 360µs ± 0% -50.90% <====Encoder_EncodeAllHTML-16 213µs ± 0% 209µs ± 0% -2.07%Encoder_EncodeAllTwain-16 3.23ms ± 0% 3.23ms ± 0% -0.04%Encoder_EncodeAllPi-16 1.12ms ± 0% 1.11ms ± 0% -1.01%Random4KEncodeAllFastest-16 988ns ± 0% 976ns ± 0% -1.31%Random10MBEncodeAllFastest-16 2.50ms ± 0% 2.48ms ± 0% -0.70%Random4KEncodeAllDefault-16 4.58µs ± 0% 4.56µs ± 0% -0.31%RandomEncodeAllDefault-16 2.58ms ± 0% 2.52ms ± 0% -2.20%Random10MBEncoderFastest-16 3.61ms ± 0% 3.61ms ± 0% -0.04%RandomEncoderDefault-16 3.44ms ± 0% 3.44ms ± 0% +0.03%name old speed new speed deltaEncoder_EncodeAllXML-16 402MB/s ± 0% 410MB/s ± 0% +2.16%Encoder_EncodeAllSimple/fastest-16 173MB/s ± 0% 175MB/s ± 0% +1.10%Encoder_EncodeAllSimple/default-16 116MB/s ± 0% 107MB/s ± 0% -7.52%Encoder_EncodeAllSimple/better-16 99.0MB/s ± 0% 101.4MB/s ± 0% +2.38%Encoder_EncodeAllSimple/best-16 6.21MB/s ± 0% 14.61MB/s ± 0% +135.27% <====Encoder_EncodeAllSimple4K/fastest-16 1.52GB/s ± 0% 1.60GB/s ± 0% +5.56%Encoder_EncodeAllSimple4K/default-16 124MB/s ± 0% 122MB/s ± 0% -1.29%Encoder_EncodeAllSimple4K/better-16 104MB/s ± 0% 106MB/s ± 0% +1.13%Encoder_EncodeAllSimple4K/best-16 5.59MB/s ± 0% 11.39MB/s ± 0% +103.76% <====Encoder_EncodeAllHTML-16 208MB/s ± 0% 213MB/s ± 0% +2.11%Encoder_EncodeAllTwain-16 120MB/s ± 0% 120MB/s ± 0% +0.04%Encoder_EncodeAllPi-16 89.0MB/s ± 0% 89.9MB/s ± 0% +1.02%Random4KEncodeAllFastest-16 4.14GB/s ± 0% 4.20GB/s ± 0% +1.32%Random10MBEncodeAllFastest-16 4.19GB/s ± 0% 4.22GB/s ± 0% +0.71%Random4KEncodeAllDefault-16 895MB/s ± 0% 897MB/s ± 0% +0.31%RandomEncodeAllDefault-16 4.06GB/s ± 0% 4.15GB/s ± 0% +2.25%Random10MBEncoderFastest-16 2.90GB/s ± 0% 2.90GB/s ± 0% +0.04%RandomEncoderDefault-16 3.05GB/s ± 0% 3.05GB/s ± 0% -0.03%```
Very nice! Could you add a comment explaining how you determined the size? That way if the struct is changed whoever is looking at it will know how to adjust it. |
@klauspost All done :) |
klauspost approved these changesSep 25, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
For information, I have also tried aligning other structs one by one but nothing else had any measurable effect.