Add poseidon and babyjub benchmarks

This commit is contained in:
Eduard S
2019-12-16 13:08:34 +01:00
parent 4356f44a3d
commit a5b6afcb16
3 changed files with 86 additions and 3 deletions

View File

@@ -91,9 +91,7 @@ func BenchmarkMIMC7(b *testing.B) {
b41 := big.NewInt(int64(41))
bigArray4 := []*big.Int{b12, b45, b78, b41}
var h4 *big.Int
for i := 0; i < b.N; i++ {
h4, _ = Hash(bigArray4, nil)
Hash(bigArray4, nil)
}
println(h4)
}