about summary refs log tree commit diff
path: root/src/libstd/io/extensions.rs
diff options
context:
space:
mode:
authorLiigo Zhuang <com.liigo@gmail.com>2014-04-01 09:16:35 +0800
committerLiigo Zhuang <com.liigo@gmail.com>2014-04-11 17:31:13 +0800
commit408f484b660d507617d5293c03942b5b5dd7bc0a (patch)
tree0985ff6b425cefd60bc47303a47be722a67fae64 /src/libstd/io/extensions.rs
parent9af93ad54ddf2ac7a04d5ea0c07ad362537e8126 (diff)
downloadrust-408f484b660d507617d5293c03942b5b5dd7bc0a.tar.gz
rust-408f484b660d507617d5293c03942b5b5dd7bc0a.zip
libtest: rename `BenchHarness` to `Bencher`
Closes #12640
Diffstat (limited to 'src/libstd/io/extensions.rs')
-rw-r--r--src/libstd/io/extensions.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/io/extensions.rs b/src/libstd/io/extensions.rs
index e1eaa2792bf..b2202a13057 100644
--- a/src/libstd/io/extensions.rs
+++ b/src/libstd/io/extensions.rs
@@ -503,7 +503,7 @@ mod test {
 #[cfg(test)]
 mod bench {
     extern crate test;
-    use self::test::BenchHarness;
+    use self::test::Bencher;
     use container::Container;
 
     macro_rules! u64_from_be_bytes_bench_impl(
@@ -514,7 +514,7 @@ mod bench {
 
             let data = slice::from_fn($stride*100+$start_index, |i| i as u8);
             let mut sum = 0u64;
-            bh.iter(|| {
+            b.iter(|| {
                 let mut i = $start_index;
                 while i < data.len() {
                     sum += u64_from_be_bytes(data, i, $size);
@@ -525,32 +525,32 @@ mod bench {
     )
 
     #[bench]
-    fn u64_from_be_bytes_4_aligned(bh: &mut BenchHarness) {
+    fn u64_from_be_bytes_4_aligned(b: &mut Bencher) {
         u64_from_be_bytes_bench_impl!(4, 4, 0);
     }
 
     #[bench]
-    fn u64_from_be_bytes_4_unaligned(bh: &mut BenchHarness) {
+    fn u64_from_be_bytes_4_unaligned(b: &mut Bencher) {
         u64_from_be_bytes_bench_impl!(4, 4, 1);
     }
 
     #[bench]
-    fn u64_from_be_bytes_7_aligned(bh: &mut BenchHarness) {
+    fn u64_from_be_bytes_7_aligned(b: &mut Bencher) {
         u64_from_be_bytes_bench_impl!(7, 8, 0);
     }
 
     #[bench]
-    fn u64_from_be_bytes_7_unaligned(bh: &mut BenchHarness) {
+    fn u64_from_be_bytes_7_unaligned(b: &mut Bencher) {
         u64_from_be_bytes_bench_impl!(7, 8, 1);
     }
 
     #[bench]
-    fn u64_from_be_bytes_8_aligned(bh: &mut BenchHarness) {
+    fn u64_from_be_bytes_8_aligned(b: &mut Bencher) {
         u64_from_be_bytes_bench_impl!(8, 8, 0);
     }
 
     #[bench]
-    fn u64_from_be_bytes_8_unaligned(bh: &mut BenchHarness) {
+    fn u64_from_be_bytes_8_unaligned(b: &mut Bencher) {
         u64_from_be_bytes_bench_impl!(8, 8, 1);
     }
 }