crypto/internal/fips140/sha256: enable zvknha for riscv64
goos: linux
goarch: riscv64
pkg: crypto/sha256
cpu: Spacemit(R) X100
│ /root/sha256.old.bench │ /root/sha256.new.bench │
│ sec/op │ sec/op vs base │
Hash8Bytes/New 543.5n ± 0% 382.0n ± 0% -29.71% (p=0.000 n=10)
Hash8Bytes/Sum224 585.5n ± 0% 432.4n ± 0% -26.15% (p=0.000 n=10)
Hash8Bytes/Sum256 580.3n ± 0% 427.4n ± 0% -26.35% (p=0.000 n=10)
Hash1K/New 5.942µ ± 0% 1.636µ ± 0% -72.47% (p=0.000 n=10)
Hash1K/Sum224 5.990µ ± 0% 1.685µ ± 0% -71.87% (p=0.000 n=10)
Hash1K/Sum256 5.992µ ± 0% 1.692µ ± 0% -71.76% (p=0.000 n=10)
Hash8K/New 43.970µ ± 0% 9.822µ ± 0% -77.66% (p=0.000 n=10)
Hash8K/Sum224 43.996µ ± 0% 9.873µ ± 0% -77.56% (p=0.000 n=10)
Hash8K/Sum256 43.991µ ± 0% 9.878µ ± 0% -77.55% (p=0.000 n=10)
Hash256K/New 1388.5µ ± 0% 299.3µ ± 0% -78.45% (p=0.000 n=10)
Hash256K/Sum224 1388.3µ ± 0% 299.4µ ± 0% -78.44% (p=0.000 n=10)
Hash256K/Sum256 1388.2µ ± 0% 299.4µ ± 0% -78.44% (p=0.000 n=10)
Hash1M/New 5.553m ± 0% 1.197m ± 0% -78.45% (p=0.000 n=10)
Hash1M/Sum224 5.556m ± 0% 1.197m ± 0% -78.46% (p=0.000 n=10)
Hash1M/Sum256 5.556m ± 0% 1.197m ± 0% -78.45% (p=0.000 n=10)
geomean 64.93µ 18.94µ -70.83%
│ /root/sha256.old.bench │ /root/sha256.new.bench │
│ B/s │ B/s vs base │
Hash8Bytes/New 14.04Mi ± 0% 19.97Mi ± 0% +42.26% (p=0.000 n=10)
Hash8Bytes/Sum224 13.03Mi ± 0% 17.65Mi ± 0% +35.47% (p=0.000 n=10)
Hash8Bytes/Sum256 13.15Mi ± 0% 17.85Mi ± 0% +35.80% (p=0.000 n=10)
Hash1K/New 164.3Mi ± 0% 596.8Mi ± 0% +263.13% (p=0.000 n=10)
Hash1K/Sum224 163.0Mi ± 0% 579.5Mi ± 0% +255.44% (p=0.000 n=10)
Hash1K/Sum256 163.0Mi ± 0% 577.3Mi ± 0% +254.18% (p=0.000 n=10)
Hash8K/New 177.7Mi ± 0% 795.4Mi ± 0% +347.68% (p=0.000 n=10)
Hash8K/Sum224 177.6Mi ± 0% 791.3Mi ± 0% +345.60% (p=0.000 n=10)
Hash8K/Sum256 177.6Mi ± 0% 790.9Mi ± 0% +345.35% (p=0.000 n=10)
Hash256K/New 180.0Mi ± 0% 835.3Mi ± 0% +363.94% (p=0.000 n=10)
Hash256K/Sum224 180.1Mi ± 0% 835.1Mi ± 0% +363.78% (p=0.000 n=10)
Hash256K/Sum256 180.1Mi ± 0% 835.1Mi ± 0% +363.73% (p=0.000 n=10)
Hash1M/New 180.1Mi ± 0% 835.5Mi ± 0% +363.97% (p=0.000 n=10)
Hash1M/Sum224 180.0Mi ± 0% 835.4Mi ± 0% +364.19% (p=0.000 n=10)
Hash1M/Sum256 180.0Mi ± 0% 835.3Mi ± 0% +364.13% (p=0.000 n=10)
geomean 104.7Mi 359.0Mi +242.79%
Updates #77328
Change-Id: I297d8f77731cafe077c3adb726db57512e04fb33
Reviewed-on: https://go-review.googlesource.com/c/go/+/752981
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Julian Zhu <jz531210@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.