-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v0.7' into feat/inv_bench
- Loading branch information
Showing
11 changed files
with
80,235 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use criterion::{criterion_group, criterion_main, Criterion}; | ||
use halo2_mpt_circuits::TestCircuit; | ||
use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr}; | ||
|
||
fn bench(criterion: &mut Criterion) { | ||
let json = include_str!("traces.json"); | ||
let circuit = TestCircuit::new(10_000, serde_json::from_str(&json).unwrap()); | ||
|
||
criterion.bench_function("assign trace", |bencher| { | ||
bencher.iter(|| MockProver::<Fr>::run(14, &circuit, vec![])) | ||
}); | ||
} | ||
|
||
criterion_group! { | ||
name = benches; | ||
config = Criterion::default().sample_size(10); | ||
targets = bench | ||
} | ||
|
||
criterion_main!(benches); |
Oops, something went wrong.