Skip to content

Commit

Permalink
fixup benches
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jun 15, 2020
1 parent 97a5d89 commit 9f2ee80
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions storage-proofs/porep/benches/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,25 @@ fn kdf_benchmark(c: &mut Criterion) {
let graph = &graph;
let replica_id = replica_id.clone();

b.iter(|| black_box(create_label_exp(graph, &replica_id, &*exp_data, data, 1, 2)))
b.iter(|| {
black_box(create_label_exp(
graph,
None,
&replica_id,
&*exp_data,
data,
1,
2,
))
})
});

group.bench_function("non-exp", |b| {
let mut data = data.clone();
let graph = &graph;
let replica_id = replica_id.clone();

b.iter(|| black_box(create_label(graph, &replica_id, &mut data, 1, 2)))
b.iter(|| black_box(create_label(graph, None, &replica_id, &mut data, 1, 2)))
});

group.finish();
Expand Down

0 comments on commit 9f2ee80

Please sign in to comment.