Skip to content
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

Optimize single block encodes #199

Merged
merged 5 commits into from
Dec 28, 2019
Merged

Conversation

klauspost
Copy link
Owner

@klauspost klauspost commented Dec 27, 2019

With a one type data source:

λ benchstat old.txt new.txt
name                                 old time/op    new time/op    delta
Encoder_EncodeAllSimple4K/fastest-2    31.7µs ± 0%    27.1µs ± 0%  -14.46%        (p=0.000 n=10+10)
Encoder_EncodeAllSimple4K/default-2    49.0µs ± 0%    44.9µs ± 0%   -8.51%        (p=0.000 n=10+10)

name                                 old speed      new speed      delta
Encoder_EncodeAllSimple4K/fastest-2   129MB/s ± 0%   151MB/s ± 0%  +16.90%        (p=0.000 n=10+10)
Encoder_EncodeAllSimple4K/default-2  83.5MB/s ± 0%  91.3MB/s ± 0%   +9.30%        (p=0.000 n=10+10)

@klauspost klauspost merged commit bf8e070 into master Dec 28, 2019
@klauspost klauspost deleted the optimize-single-block-encodes branch December 28, 2019 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant