Skip to content

Commit 10d7e84

Browse files
authored
Merge pull request #185 from dalek-cryptography/benchmark
Add benchmark section to README
2 parents c3abf23 + 9e63fde commit 10d7e84

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ the library's [internal documentation][doc_internal]:
5252
* how the constraint system reduction works (under development);
5353
* how the aggregated circuit proofs work (future work).
5454

55+
## Comparative Performance
56+
57+
The following table gives comparative timings for proving and
58+
verification of a 64-bit rangeproof on an i7-7800X with Turbo Boost
59+
disabled. Times are in microseconds (lower is better), with the
60+
relative speed compared to the fastest implementation.
61+
62+
| Implementation | Group | Proving (μs) | rel | Verification (μs) | rel |
63+
|----------------|------------------|-------------:|----------:|------------------:|----------:|
64+
| ours (avx2) | ristretto255 | 7300 | **1.00x** | 1040 | **1.00x** |
65+
| ours (u64) | ristretto255 | 11300 | **1.54x** | 1490 | **1.43x** |
66+
| libsecp+endo | secp256k1 | 14300 | **1.96x** | 1900 | **1.83x** |
67+
| libsecp-endo | secp256k1 | 16800 | **2.30x** | 2080 | **2.00x** |
68+
| Monero | ed25519 (unsafe) | 53300 | **7.30x** | 4810 | **4.63x** |
69+
70+
This crate also contains other benchmarks; see the *Benchmarks*
71+
section below for details.
72+
5573
## WARNING
5674

5775
This code is still research-quality. It is not (yet) suitable for

0 commit comments

Comments
 (0)