1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:38:01 -07:00
go/src/crypto
Filippo Valsorda ad989c7dba crypto/cipher: make AES-GCM benchmarks match ChaCha20Poly1305 ones
It's useful to compare TLS AEADs. Here are the numbers on my MacBook
with an Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz.

name                            speed
AESGCM/Open-128-64-8             692MB/s ± 2%
AESGCM/Seal-128-64-8             568MB/s ± 1%
AESGCM/Open-128-1350-8          3.96GB/s ± 1%
AESGCM/Seal-128-1350-8          3.17GB/s ± 4%
AESGCM/Open-128-8192-8          5.46GB/s ± 2%
AESGCM/Seal-128-8192-8          4.40GB/s ± 3%

name                            speed
AESGCM/Open-256-64-8             602MB/s ± 2%
AESGCM/Seal-256-64-8             508MB/s ± 1%
AESGCM/Open-256-1350-8          3.06GB/s ± 1%
AESGCM/Seal-256-1350-8          2.65GB/s ± 2%
AESGCM/Open-256-8192-8          4.02GB/s ± 3%
AESGCM/Seal-256-8192-8          3.53GB/s ± 2%

name                            speed
Chacha20Poly1305/Open-64-8       385MB/s ± 3%
Chacha20Poly1305/Seal-64-8       396MB/s ± 3%
Chacha20Poly1305/Open-1350-8    1.67GB/s ± 2%
Chacha20Poly1305/Seal-1350-8    1.62GB/s ± 1%
Chacha20Poly1305/Open-8192-8    2.04GB/s ± 2%
Chacha20Poly1305/Seal-8192-8    2.04GB/s ± 3%

Change-Id: I9373ab85bf132b45b41078205259100fa2d46dda
Reviewed-on: https://go-review.googlesource.com/c/go/+/314610
Trust: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
2021-04-28 19:13:50 +00:00
..
aes all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
cipher crypto/cipher: make AES-GCM benchmarks match ChaCha20Poly1305 ones 2021-04-28 19:13:50 +00:00
des crypto/des: fix typo in permuteInitialBlock function comments 2020-09-22 21:24:40 +00:00
dsa crypto/dsa,crypto/x509: deprecate DSA and remove crypto/x509 support 2020-10-02 10:48:33 +00:00
ecdsa crypto/ecdsa: fix dead reference link 2021-03-13 11:26:35 +00:00
ed25519 crypto/ed25519: add comprehensive edge-case test vectors 2021-04-05 20:53:42 +00:00
elliptic crypto/elliptic: fix some typos 2021-03-30 08:39:13 +00:00
hmac crypto/hmac: panic if reusing hash.Hash values 2020-10-19 15:00:02 +00:00
internal all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
md5 crypto/md5: improve ppc64x performance 2021-03-15 12:30:38 +00:00
rand crypto/rand, internal/syscall/unix: add support for getentropy syscall on darwin 2021-03-17 22:14:28 +00:00
rc4
rsa crypto/rsa: fix salt length calculation with PSSSaltLengthAuto 2021-03-29 15:20:11 +00:00
sha1 docs: fix case of GitHub 2021-03-05 02:35:21 +00:00
sha256 docs: fix case of GitHub 2021-03-05 02:35:21 +00:00
sha512 all: remove redundant spaces before . and , 2021-04-20 00:49:17 +00:00
subtle
tls crypto/tls: fix flaky handshake cancellation tests 2021-04-16 19:23:29 +00:00
x509 syscall, etc.: use abi.FuncPCABI0 for libc syscall wrappers 2021-04-26 15:52:34 +00:00
crypto.go crypto: fix PKCS space in docs 2020-07-08 17:21:49 +00:00
issue21104_test.go