Skip to content

Commit

Permalink
fix: error logging for benches (zkonduit#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto authored Dec 12, 2022
1 parent b00f482 commit 2f3a4cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions benches/affine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl<F: FieldExt + TensorType> Circuit<F> for MyCircuit<F> {
}

fn runaffine(c: &mut Criterion) {
colog::init();
let mut group = c.benchmark_group("affine");
for &len in [4, 8, 16, 32, 64].iter() {
unsafe {
Expand Down
1 change: 1 addition & 0 deletions benches/cnvrl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ where
}

fn runcnvrl(c: &mut Criterion) {
colog::init();
let mut group = c.benchmark_group("cnvrl");

for size in [1, 2, 4, 8].iter() {
Expand Down
1 change: 1 addition & 0 deletions benches/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl<F: FieldExt + TensorType> Circuit<F> for MyCircuit<F> {
}

fn runrange(c: &mut Criterion) {
colog::init();
let mut group = c.benchmark_group("range");
for &len in [4, 8, 16, 32, 64, 128].iter() {
unsafe {
Expand Down
1 change: 1 addition & 0 deletions benches/relu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ impl<F: FieldExt + TensorType, NL: 'static + Nonlinearity<F> + Clone> Circuit<F>
}

fn runrelu(c: &mut Criterion) {
colog::init();
let mut group = c.benchmark_group("relu");

let mut rng = rand::thread_rng();
Expand Down

0 comments on commit 2f3a4cc

Please sign in to comment.