Skip to content

Commit ca0da5a

Browse files
K1li4nLAnomalRoil
authored andcommitted
Set fixed number of predicates for benchmark
1 parent 5b1e99d commit ca0da5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proof/proof_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func Example_or2() {
251251

252252
func BenchmarkProof(b *testing.B) {
253253
rand := blake2xb.New([]byte("random"))
254+
predicateSize := 100
254255
suites := []struct {
255256
Suite
256257
}{
@@ -268,7 +269,7 @@ func BenchmarkProof(b *testing.B) {
268269
pval := map[string]kyber.Point{}
269270
predicateBuilder := make([]string, 0)
270271

271-
for i := 0; i < b.N; i++ {
272+
for i := 0; i < predicateSize; i++ {
272273
s := suite.Scalar().Pick(rand)
273274
index := strconv.Itoa(i)
274275

0 commit comments

Comments
 (0)