]> git.lizzy.rs Git - rust.git/blob - library/std/src/num/benches.rs
Rollup merge of #104512 - jyn514:download-ci-llvm-default, r=Mark-Simulacrum
[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 }