mirror of
https://github.com/vacp2p/status-rln-prover.git
synced 2026-01-08 21:18:05 -05:00
Add prover bench timing print
This commit is contained in:
@@ -111,6 +111,8 @@ async fn proof_collector(port: u16, proof_count: usize) -> Vec<RlnProofReply> {
|
||||
|
||||
fn proof_generation_bench(c: &mut Criterion) {
|
||||
|
||||
let start = std::time::Instant::now();
|
||||
|
||||
let rayon_num_threads = std::env::var("RAYON_NUM_THREADS")
|
||||
.unwrap_or("".to_string());
|
||||
let proof_service_count_default = 4;
|
||||
@@ -209,13 +211,15 @@ fn proof_generation_bench(c: &mut Criterion) {
|
||||
);
|
||||
|
||||
group.finish();
|
||||
println!("Benchmark finished in {:?}", start.elapsed());
|
||||
|
||||
}
|
||||
|
||||
criterion_group!(
|
||||
name = benches;
|
||||
config = Criterion::default()
|
||||
.sample_size(20)
|
||||
// .measurement_time(Duration::from_secs(150))
|
||||
.sample_size(10)
|
||||
.measurement_time(Duration::from_secs(150))
|
||||
;
|
||||
targets = proof_generation_bench
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user