fix benchmark of key verifications (#190)

This commit is contained in:
Marten Seemann 2021-03-31 06:14:00 +07:00 committed by GitHub
parent ea8b36912f
commit becdceadda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,11 +54,11 @@ func runBenchmarkSign(b *testing.B, numBytes int, t int) {
} }
func RunBenchmarkVerifyRSA(b *testing.B, numBytes int) { func RunBenchmarkVerifyRSA(b *testing.B, numBytes int) {
runBenchmarkSign(b, numBytes, RSA) runBenchmarkVerify(b, numBytes, RSA)
} }
func RunBenchmarkVerifyEd25519(b *testing.B, numBytes int) { func RunBenchmarkVerifyEd25519(b *testing.B, numBytes int) {
runBenchmarkSign(b, numBytes, Ed25519) runBenchmarkVerify(b, numBytes, Ed25519)
} }
func runBenchmarkVerify(b *testing.B, numBytes int, t int) { func runBenchmarkVerify(b *testing.B, numBytes int, t int) {