Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update ZKP benchmarks with parallel feature turned on #2963

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions crates/crypto/proof-params/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,34 +62,34 @@ parallel = ["ark-ff/parallel", "decaf377/parallel", "ark-groth16/parallel", "ark
[[bench]]
name = "nullifier_derivation"
harness = false
required-features = ["proving-keys"]
required-features = ["proving-keys", "parallel"]

[[bench]]
name = "output"
harness = false
required-features = ["proving-keys"]
required-features = ["proving-keys", "parallel"]

[[bench]]
name = "delegator_vote"
harness = false
required-features = ["proving-keys"]
required-features = ["proving-keys", "parallel"]

[[bench]]
name = "spend"
harness = false
required-features = ["proving-keys"]
required-features = ["proving-keys", "parallel"]

[[bench]]
name = "swap"
harness = false
required-features = ["proving-keys"]
required-features = ["proving-keys", "parallel"]

[[bench]]
name = "swap_claim"
harness = false
required-features = ["proving-keys"]
required-features = ["proving-keys", "parallel"]

[[bench]]
name = "undelegate_claim"
harness = false
required-features = ["proving-keys"]
required-features = ["proving-keys", "parallel"]
16 changes: 8 additions & 8 deletions docs/guide/src/dev/parameter_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ cd crates/crypto/proof-params
cargo bench
```

Performance as of commit `98590ef2dd92ea75fa3bd6f09b3c24fec3fe36ff` benchmarked on a 2023 Macbook Pro M2 (12 core CPU) with 32 GB memory:
Performance as of commit `ce2d319bd5534fd28600227b28506e32b8504493` benchmarked on a 2023 Macbook Pro M2 (12 core CPU) with 32 GB memory and the `parallel` feature enabled:

| Proof | Number of constraints | Proving time |
| -------- | ------- | ----- |
| Spend | 34,630 | 2.06s
| Output | 13,875 | 667ms
| Delegator vote | 36,723 | 2.05s
| Undelegate claim | 14,776 | 722ms
| Swap | 25,700 | 1.21s
| SwapClaim | 37,061 | 1.83s
| Nullifier derivation | 394 | 59ms
| Spend | 34,630 | 388ms
| Output | 13,875 | 130ms
| Delegator vote | 36,723 | 389ms
| Undelegate claim | 14,776 | 139ms
| Swap | 25,700 | 237ms
| SwapClaim | 37,061 | 379ms
| Nullifier derivation | 394 | 15ms

## zk-SNARK Ceremony Benchmarks

Expand Down
Loading