Skip to content

Commit

Permalink
bench: add case for size 512
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
  • Loading branch information
jsign committed Jul 6, 2023
1 parent b9b612d commit 9043b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ goos: linux
goarch: amd64
pkg: github.com/jsign/curdleproofs
cpu: AMD Ryzen 7 3800XT 8-Core Processor
BenchmarkProver/shuffled_elements=60-16 12 96241397 ns/op
BenchmarkProver/shuffled_elements=124-16 7 147237624 ns/op
BenchmarkProver/shuffled_elements=252-16 5 233925449 ns/op
BenchmarkVerifier/shuffled_elements=60-16 115 10346387 ns/op
BenchmarkVerifier/shuffled_elements=124-16 102 11821016 ns/op
BenchmarkVerifier/shuffled_elements=252-16 72 14792873 ns/op
BenchmarkProver/shuffled_elements=60-16 12 94740346 ns/op
BenchmarkProver/shuffled_elements=124-16 7 150115008 ns/op
BenchmarkProver/shuffled_elements=252-16 5 238523279 ns/op
BenchmarkProver/shuffled_elements=508-16 3 404879574 ns/op
BenchmarkVerifier/shuffled_elements=60-16 115 10175408 ns/op
BenchmarkVerifier/shuffled_elements=124-16 99 11870850 ns/op
BenchmarkVerifier/shuffled_elements=252-16 72 15094033 ns/op
```

The implementation has the optimizations mentioned in the paper and some extra minor ones. No extra effort was made to optimize further (i.e: there might be other trivial or advanced cryptography or engineering to apply).
Expand Down
2 changes: 1 addition & 1 deletion curdleproof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func BenchmarkProver(b *testing.B) {
rand, err := common.NewRand(42)
require.NoError(b, err)

for _, n := range []int{64, 128, 256} {
for _, n := range []int{64, 128, 256, 512} {
b.Run(fmt.Sprintf("shuffled elements=%d", n-common.N_BLINDERS), func(b *testing.B) {
crs, Rs, Ss, Ts, Us, M, perm, k, rs_m := setup(b, n)
b.ResetTimer()
Expand Down

0 comments on commit 9043b4f

Please sign in to comment.