fix: bench didn't black_box its results
This commit is contained in:
parent
0856771248
commit
c731648e77
1 changed files with 1 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue