Update to last circomlib version

On a Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz, with 32 GB of RAM:

- Before ff:
hash    time:   [927.61 us 927.78 us 927.98 us]

- Previous commit:
hash    time:   [26.495 us 26.503 us 26.512 us]

- New:
hash    time:   [9.8622 us 9.9953 us 10.127 us]
This commit is contained in:
arnaucube
2020-09-30 22:59:44 +02:00
parent df8530c24d
commit f30ebf7b71
6 changed files with 105 additions and 277 deletions

View File

@@ -15,12 +15,9 @@ fn criterion_benchmark(c: &mut Criterion) {
"12242166908188651009877250812424843524687801523336557272219921456462821518061",
)
.unwrap();
let mut big_arr: Vec<Fr> = Vec::new();
big_arr.push(b1.clone());
big_arr.push(b2.clone());
let mimc7 = Mimc7::new();
let mimc7 = Mimc7::new(91);
c.bench_function("hash", |b| b.iter(|| mimc7.hash(big_arr.clone())));
c.bench_function("hash", |b| b.iter(|| mimc7.hash(&b1, &b2)));
}
criterion_group!(benches, criterion_benchmark);