Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear committed Apr 9, 2021
1 parent 0785a56 commit 4137a2b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions benches/bench_idl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,12 @@ fn do_bench_duplex(c: &mut Criterion, label: &str, i: Duplex) {
|t, RDuplex(a, b)| t.iter(|| { b | a }.sum()),
);
group.bench_with_input(
BenchmarkId::new("Compressed V2 Sparse Sparse", &ri),
BenchmarkId::new("Compressed V2", &ri),
&v2i,
|t, V2Duplex(a, b)| t.iter(|| { b | a }.sum()),
);

/*
v2i.0.compress();
group.bench_with_input(
BenchmarkId::new("Compressed V2 Sparse Compressed", &ri),
Expand All @@ -144,6 +145,7 @@ fn do_bench_duplex(c: &mut Criterion, label: &str, i: Duplex) {
&v2i,
|t, V2Duplex(a, b)| t.iter(|| { b | a }.sum()),
);
*/
group.finish();

let mut v2i = V2Duplex(
Expand All @@ -162,11 +164,12 @@ fn do_bench_duplex(c: &mut Criterion, label: &str, i: Duplex) {
);

group.bench_with_input(
BenchmarkId::new("Compressed V2 Sparse Sparse", &ri),
BenchmarkId::new("Compressed V2", &ri),
&v2i,
|t, V2Duplex(a, b)| t.iter(|| { b & a }.sum()),
);

/*
v2i.0.compress();
group.bench_with_input(
BenchmarkId::new("Compressed V2 Sparse Compressed", &ri),
Expand All @@ -180,6 +183,7 @@ fn do_bench_duplex(c: &mut Criterion, label: &str, i: Duplex) {
&v2i,
|t, V2Duplex(a, b)| t.iter(|| { b & a }.sum()),
);
*/

group.finish();
}
Expand Down

0 comments on commit 4137a2b

Please sign in to comment.