fix: bench didn't black_box its results

This commit is contained in:
The8472 2019-11-30 19:40:28 +01:00
parent 0856771248
commit c731648e77
1 changed files with 1 additions and 3 deletions

View File

@ -643,9 +643,7 @@ fn bench_rev_1(b: &mut test::Bencher) {
#[bench]
fn bench_rev_2(b: &mut test::Bencher) {
let data = black_box([0; LEN]);
b.iter(|| {
example_plain_slow(&data);
});
b.iter(|| example_plain_slow(&data));
}
#[bench]