Skip to content

Commit

Permalink
Fix schnorr benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiono11 committed Apr 19, 2024
1 parent 80d09ff commit 1afb437
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 5 additions & 3 deletions benches/schnorr_benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// - isis agora lovecruft <isis@patternsinthevoid.net>
// - Jeff Burdges <jeff@web3.foundation>

use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
use criterion::{BenchmarkId, Criterion, criterion_main, criterion_group};

mod schnorr_benches {
use super::*;
Expand Down Expand Up @@ -39,7 +39,7 @@ mod schnorr_benches {
}

fn verify_batch_signatures(c: &mut Criterion) {
const BATCH_SIZES: [usize; 1] = [1000];
const BATCH_SIZES: [usize; 8] = [4, 8, 16, 32, 64, 96, 128, 256];

let mut group = c.benchmark_group("Schnorr batch signature verification");
for size in &BATCH_SIZES {
Expand Down Expand Up @@ -77,4 +77,6 @@ mod schnorr_benches {
}
}

criterion_main!(schnorr_benches::schnorr_benches,);
criterion_main!(
schnorr_benches::schnorr_benches,
);

0 comments on commit 1afb437

Please sign in to comment.