Skip to content

Commit

Permalink
doc: add benchmark numbers to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Jul 5, 2024
1 parent 71bc59b commit 722a9a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ cargo bench
```

This will generate a report at `target/criterion/report/index.html`.

Performance benchmarked on commit 9750f5ff01d11f158f111a1a75401901049e5575 on
a 2023 Macbook Pro M2 (12 core CPU) with 32 GB memory using our 4-to-1 optimized
poseidon hash takes 47.3µs, or ~21,141 hashes/second.
2 changes: 1 addition & 1 deletion poseidon-consistency/benches/permutation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn hash_4_1_our_impl_unoptimized(i: &Fq, j: &Fq, k: &Fq, l: &Fq, m: &Fq) -> Fq {

pub fn bench_unoptimized_vs_optimized(c: &mut Criterion) {
let mut group = c.benchmark_group("unoptimized_vs_optimized");
let n = 10;
let n = 100;
let mut rng = ChaChaRng::seed_from_u64(666);
let mut test_field_elements = Vec::with_capacity(n);

Expand Down

0 comments on commit 722a9a5

Please sign in to comment.