Skip to content

Commit

Permalink
add timing for pk/vk generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kitounliu committed Apr 15, 2024
1 parent afc36b0 commit d31d6f0
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@ Below are the evaluation results running on AWS instance r6i.8xlarge, which has

NI-DKG without G2 chip:

| degree | (t, n) | snark_prove (s) | snark_verify (ms) | snark proof size (Bytes) | memory usage (GB) |
|:--------------:|:---------:|:---------------:|:-----------------:|:------------------------:|:-----------------:|
| 18 | (5,9) | 19.908 | 5.1817 | 3488 | 4.6 |
| 19 | (11,21) | 37.616 | 5,5494 | 3488 | 8.8 |
| 20 | (22, 43) | 74.689 | 6.2203 | 3488 | 16.6 |
| 21 | (45, 88) | 147.650 | 7.5934 | 3488 | 32.6 |
| 22 | (89, 176) | 295.792 | 10.270 | 3488 | 64.4 |
| degree | (t, n) | snark pk/vk setup (s) | snark prove (s) | snark verify (ms) | snark proof size (Bytes) | memory usage (GB) |
|:--------------:|:---------:|:---------------------:|:---------------:|:-----------------:|:------------------------:|:-----------------:|
| 18 | (5,9) | 14.710 | 19.908 | 5.1817 | 3488 | 4.6 |
| 19 | (11,21) | 31.214 | 37.616 | 5,5494 | 3488 | 8.8 |
| 20 | (22, 43)| 63.561 | 74.689 | 6.2203 | 3488 | 16.6 |
| 21 | (45, 88)| 130.388 | 147.650 | 7.5934 | 3488 | 32.6 |
| 22 | (89, 176)| 266.208 | 295.792 | 10.270 | 3488 | 64.4 |


NI-DKG with G2 chip:

| degree | (t, n) | snark_prove (s) | snark_verify (ms) | snark proof size (Bytes) | memory usage (GB) |
|:--------------:|:---------:|:---------------:|:-----------------:|:------------------------:|:-----------------:|
| 18 | (3,5) | 20.758 | 5.0838 | 3488 | 4.8 |
| 19 | (9,16) | 38.055 | 5.4085 | 3488 | 8.8 |
| 20 | (20, 38) | 74.738 | 6.0364 | 3488 | 16.5 |
| 21 | (42, 83) | 148.438 | 7.3965 | 3488 | 32.5 |
| 22 | (86, 171) | 294.286 | 10.139 | 3488 | 64.4 |
| degree | (t, n) | snark pk/vk setup (s) | snark prove (s) | snark verify (ms) | snark proof size (Bytes) | memory usage (GB) |
|:--------------:|:---------:|:---------------------:|:---------------:|:-----------------:|:------------------------:|:-----------------:|
| 18 | (3,5) | 17.290 | 20.758 | 5.0838 | 3488 | 4.8 |
| 19 | (9,16) | 33.354 | 38.055 | 5.4085 | 3488 | 8.8 |
| 20 | (20, 38)| 65.963 | 74.738 | 6.0364 | 3488 | 16.5 |
| 21 | (42, 83)| 131.971 | 148.438 | 7.3965 | 3488 | 32.5 |
| 22 | (86, 171)| 268.857 | 294.286 | 10.139 | 3488 | 64.4 |


The proof size remains constant and the verification time can be further reduced by hashing the public inputs which is not yet implemented.
Expand Down

0 comments on commit d31d6f0

Please sign in to comment.