about summary refs log tree commit diff
path: root/library/std/src/num
diff options
context:
space:
mode:
authorNicholas Thompson <NCGThompson@gmail.com>2023-12-25 21:10:04 -0500
committerNicholas Thompson <NCGThompson@gmail.com>2024-01-11 11:30:12 -0500
commit7c28a50a3abf85a787c182ebc8c6deca0bb9135b (patch)
tree27fb0833839669d2e21ffb7b50284006320f10e9 /library/std/src/num
parent68acb393c5d2cff049b41981e35217a7e630f63a (diff)
downloadrust-7c28a50a3abf85a787c182ebc8c6deca0bb9135b.tar.gz
rust-7c28a50a3abf85a787c182ebc8c6deca0bb9135b.zip
removed nonfunctioning benchmark
It could also have been fixed by removing a semicolon instead.
Diffstat (limited to 'library/std/src/num')
-rw-r--r--library/std/src/num/benches.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/library/std/src/num/benches.rs b/library/std/src/num/benches.rs
deleted file mode 100644
index 233ea0506c0..00000000000
--- a/library/std/src/num/benches.rs
+++ /dev/null
@@ -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));
-    });
-}