mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
fix: bench didn't black_box its results
This commit is contained in:
parent
0856771248
commit
c731648e77
@ -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…
Reference in New Issue
Block a user