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

feat: switch noise to use minio's SHA256 implementation #1657

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

Stebalien
Copy link
Member

On my 11th gen Intel laptop, this library is 3x faster than the default
one (and is the one we use in go-multihash).

See below (GEN_ is the builtin version, SHA_ is this library).

BenchmarkHash/SHA_/8Bytes-8           94.31 ns/op	  84.82 MB/s
BenchmarkHash/SHA_/1K-8               926.9 ns/op	1104.74 MB/s
BenchmarkHash/SHA_/8K-8                6793 ns/op	1205.98 MB/s
BenchmarkHash/SHA_/1M-8              883694 ns/op	1186.58 MB/s
BenchmarkHash/SHA_/5M-8             4347298 ns/op	1206.01 MB/s
BenchmarkHash/SHA_/10M-8            8810864 ns/op	1190.09 MB/s
BenchmarkHash/GEN_/8Bytes-8           283.2 ns/op	  28.25 MB/s
BenchmarkHash/GEN_/1K-8                3587 ns/op	 285.48 MB/s
BenchmarkHash/GEN_/8K-8               27706 ns/op	 295.68 MB/s
BenchmarkHash/GEN_/1M-8             3414827 ns/op	 307.07 MB/s
BenchmarkHash/GEN_/5M-8            16789216 ns/op	 312.28 MB/s
BenchmarkHash/GEN_/10M-8           34073478 ns/op	 307.74 MB/s

On my 11th gen Intel laptop, this library is 3x faster than the default
one (and is the one we use in go-multihash).

See below (GEN_ is the builtin version, SHA_ is this library).

    BenchmarkHash/SHA_/8Bytes-8           94.31 ns/op	  84.82 MB/s
    BenchmarkHash/SHA_/1K-8               926.9 ns/op	1104.74 MB/s
    BenchmarkHash/SHA_/8K-8                6793 ns/op	1205.98 MB/s
    BenchmarkHash/SHA_/1M-8              883694 ns/op	1186.58 MB/s
    BenchmarkHash/SHA_/5M-8             4347298 ns/op	1206.01 MB/s
    BenchmarkHash/SHA_/10M-8            8810864 ns/op	1190.09 MB/s
    BenchmarkHash/GEN_/8Bytes-8           283.2 ns/op	  28.25 MB/s
    BenchmarkHash/GEN_/1K-8                3587 ns/op	 285.48 MB/s
    BenchmarkHash/GEN_/8K-8               27706 ns/op	 295.68 MB/s
    BenchmarkHash/GEN_/1M-8             3414827 ns/op	 307.07 MB/s
    BenchmarkHash/GEN_/5M-8            16789216 ns/op	 312.28 MB/s
    BenchmarkHash/GEN_/10M-8           34073478 ns/op	 307.74 MB/s
@Stebalien Stebalien requested a review from marten-seemann July 12, 2022 14:25
@Stebalien Stebalien merged commit 36c13f9 into master Jul 13, 2022
@Stebalien Stebalien deleted the feat/minio-sha256-noise branch July 13, 2022 10:32
@ajnavarro ajnavarro mentioned this pull request Aug 24, 2022
72 tasks
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.

2 participants