]> git.lizzy.rs Git - rust.git/blob - library/std/src/num/benches.rs
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
[rust.git] / library / std / src / num / benches.rs
1 use test::Bencher;
2
3 #[bench]
4 fn bench_pow_function(b: &mut Bencher) {
5     let v = (0..1024).collect::<Vec<u32>>();
6     b.iter(|| {
7         v.iter().fold(0u32, |old, new| old.pow(*new as u32));
8     });
9 }