mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-02-10 06:40:09 +08:00
fix benchmark of key verifications (#190)
This commit is contained in:
parent
ea8b36912f
commit
becdceadda
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user