Open
Listed in
Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
go version go1.9.2 linux/arm64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
GOARCH="arm64"
GOBIN=""
GOEXE=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/go-1.6"
GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_arm64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
What did you do?
go test crypto/rsa -bench .
What did you expect to see?
Performance can be on par with OpenSSL (https://blog.cloudflare.com/content/images/2017/11/pub_key_1_core-2.png)
What did you see instead?
+10X slower than OpenSSL (https://blog.cloudflare.com/content/images/2017/11/go_pub_key_1_core.png)
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
vielmetti commentedon Jun 26, 2018
Go 1.11beta1 is substantially faster than Go 1.10.2 on this test, on Cavium ThunderX / Packet c1.large.arm ("Type 2A").
bobby-stripe commentedon Mar 6, 2023
some updated numbers on a 3rd generation AWS Graviton (c7g) host:
and on an M1 Max:
AWS
c6i.8xlarge
(Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz) compared to c7g.8xlarge`:This is actually slightly better than the Ubuntu Focal OpenSSL 1.1.1f performance difference (Graviton 37% slower than Intel for same host types), although it looks like 2048-bit RSA is 2x as fast in OpenSSL (compared to Go benchmarks above) as reported by
openssl speed rsa2048
on thec7g
Graviton 3 hosts:OK finally Go vs.
GOEXPERIMENT=boringcrypto
on an AWSc7g
/3rd generation Graviton:(with those boringcrypto sign numbers roughly matching up with the
rsa2048
perf reported by OpenSSL above).arm64
and/or with Go 1.20 gravitational/teleport#26412