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

flate: Faster token writer, 1-2% on fastest #489

Merged
merged 5 commits into from
Feb 5, 2022
Merged

Conversation

klauspost
Copy link
Owner

@klauspost klauspost commented Feb 4, 2022

λ benchcmp before.txt after.txt
benchmark                            old ns/op     new ns/op     delta
BenchmarkEncodeDigitsSpeed1e4-32     48523         47923         -1.24%
BenchmarkEncodeDigitsSpeed1e5-32     642126        632069        -1.57%
BenchmarkEncodeDigitsSpeed1e6-32     6197352       6046440       -2.44%
BenchmarkEncodeTwainSpeed1e4-32      70716         69414         -1.84%
BenchmarkEncodeTwainSpeed1e5-32      641631        632854        -1.37%
BenchmarkEncodeTwainSpeed1e6-32      6432128       6323973       -1.68%

benchmark                            old MB/s     new MB/s     speedup
BenchmarkEncodeDigitsSpeed1e4-32     206.09       208.67       1.01x
BenchmarkEncodeDigitsSpeed1e5-32     155.73       158.21       1.02x
BenchmarkEncodeDigitsSpeed1e6-32     161.36       165.39       1.02x
BenchmarkEncodeTwainSpeed1e4-32      141.41       144.06       1.02x
BenchmarkEncodeTwainSpeed1e5-32      155.85       158.01       1.01x
BenchmarkEncodeTwainSpeed1e6-32      155.47       158.13       1.02x

@klauspost klauspost changed the title flate: Faster token writer flate: 1-2% Faster token writer Feb 4, 2022
@klauspost klauspost changed the title flate: 1-2% Faster token writer flate: Faster token writer, 1-2% on fastest Feb 4, 2022
@klauspost klauspost merged commit 24a2710 into master Feb 5, 2022
@klauspost klauspost deleted the faster-token-writer branch February 5, 2022 09:23
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