x/crypto/chacha20poly1305: 15% performance regression on certain cpus #67240
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Go version
go1.22.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Hi, I have a user reporting a 15% performance regression in gocryptfs ( rfjakob/gocryptfs#828 ) due to change #63871 .
The CPU is
Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
so I guess too old for AVX but it does have PSHUFB.Can PSHUFB be detected at runtime instead?
Reproducer is the built-in gocryptfs speed test:
What did you see happen?
With go 1.22: Slow XChaCha20-Poly1305
What did you expect to see?
With go 1.21: Fast XChaCha20-Poly1305
The text was updated successfully, but these errors were encountered: