removed nonfunctioning benchmark
It could also have been fixed by removing a semicolon instead.
This commit is contained in:
parent
68acb393c5
commit
7c28a50a3a
@ -9,9 +9,6 @@
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod benches;
|
|
||||||
|
|
||||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||||
pub use core::num::Saturating;
|
pub use core::num::Saturating;
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
use test::Bencher;
|
|
||||||
|
|
||||||
#[bench]
|
|
||||||
fn bench_pow_function(b: &mut Bencher) {
|
|
||||||
let v = (0..1024).collect::<Vec<u32>>();
|
|
||||||
b.iter(|| {
|
|
||||||
v.iter().fold(0u32, |old, new| old.pow(*new as u32));
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user