From 4137a2bfae7fbe2dd808266ab5d6891acac3c1b2 Mon Sep 17 00:00:00 2001 From: William Brown Date: Fri, 9 Apr 2021 15:18:03 +1000 Subject: [PATCH] fix bench --- benches/bench_idl.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/benches/bench_idl.rs b/benches/bench_idl.rs index f26b43f..e82ba53 100644 --- a/benches/bench_idl.rs +++ b/benches/bench_idl.rs @@ -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), @@ -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( @@ -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), @@ -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(); }