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: Improve level 1 speed by ~10% #482

Merged
merged 1 commit into from
Jan 31, 2022
Merged

Conversation

klauspost
Copy link
Owner

Mainly through manual inlining.

BenchmarkEncodeDigitsSpeed1e4-32     53121         47995         -9.65%
BenchmarkEncodeDigitsSpeed1e5-32     686799        630834        -8.15%
BenchmarkEncodeDigitsSpeed1e6-32     6636421       6054570       -8.77%
BenchmarkEncodeTwainSpeed1e4-32      77016         69146         -10.22%
BenchmarkEncodeTwainSpeed1e5-32      690640        634364        -8.15%
BenchmarkEncodeTwainSpeed1e6-32      6915519       6367504       -7.92%

BenchmarkEncodeDigitsSpeed1e4-32     188.25       208.35       1.11x
BenchmarkEncodeDigitsSpeed1e5-32     145.60       158.52       1.09x
BenchmarkEncodeDigitsSpeed1e6-32     150.68       165.16       1.10x
BenchmarkEncodeTwainSpeed1e4-32      129.84       144.62       1.11x
BenchmarkEncodeTwainSpeed1e5-32      144.79       157.64       1.09x
BenchmarkEncodeTwainSpeed1e6-32      144.60       157.05       1.09x

Mainly through manual inlining.

```
BenchmarkEncodeDigitsSpeed1e4-32     53121         47995         -9.65%
BenchmarkEncodeDigitsSpeed1e5-32     686799        630834        -8.15%
BenchmarkEncodeDigitsSpeed1e6-32     6636421       6054570       -8.77%
BenchmarkEncodeTwainSpeed1e4-32      77016         69146         -10.22%
BenchmarkEncodeTwainSpeed1e5-32      690640        634364        -8.15%
BenchmarkEncodeTwainSpeed1e6-32      6915519       6367504       -7.92%

BenchmarkEncodeDigitsSpeed1e4-32     188.25       208.35       1.11x
BenchmarkEncodeDigitsSpeed1e5-32     145.60       158.52       1.09x
BenchmarkEncodeDigitsSpeed1e6-32     150.68       165.16       1.10x
BenchmarkEncodeTwainSpeed1e4-32      129.84       144.62       1.11x
BenchmarkEncodeTwainSpeed1e5-32      144.79       157.64       1.09x
BenchmarkEncodeTwainSpeed1e6-32      144.60       157.05       1.09x
```
@klauspost klauspost changed the title flate: Improve level 1 speed flate: Improve level 1 speed by 10% Jan 31, 2022
@klauspost klauspost changed the title flate: Improve level 1 speed by 10% flate: Improve level 1 speed by ~10% Jan 31, 2022
@klauspost klauspost merged commit 61f58c1 into master Jan 31, 2022
@klauspost klauspost deleted the improve-level1-flate branch January 31, 2022 11:37
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