about summary refs log tree commit diff
path: root/src/libstd/rt
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/rt
parent9af93ad54ddf2ac7a04d5ea0c07ad362537e8126 (diff)
downloadrust-408f484b660d507617d5293c03942b5b5dd7bc0a.tar.gz
rust-408f484b660d507617d5293c03942b5b5dd7bc0a.zip
libtest: rename `BenchHarness` to `Bencher`
Closes #12640
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/global_heap.rs10
-rw-r--r--src/libstd/rt/local_heap.rs10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/libstd/rt/global_heap.rs b/src/libstd/rt/global_heap.rs
index 5c1b6cd4791..01949a7057b 100644
--- a/src/libstd/rt/global_heap.rs
+++ b/src/libstd/rt/global_heap.rs
@@ -117,18 +117,18 @@ pub unsafe fn exchange_free(ptr: *u8) {
 #[cfg(test)]
 mod bench {
     extern crate test;
-    use self::test::BenchHarness;
+    use self::test::Bencher;
 
     #[bench]
-    fn alloc_owned_small(bh: &mut BenchHarness) {
-        bh.iter(|| {
+    fn alloc_owned_small(b: &mut Bencher) {
+        b.iter(|| {
             ~10
         })
     }
 
     #[bench]
-    fn alloc_owned_big(bh: &mut BenchHarness) {
-        bh.iter(|| {
+    fn alloc_owned_big(b: &mut Bencher) {
+        b.iter(|| {
             ~[10, ..1000]
         })
     }
diff --git a/src/libstd/rt/local_heap.rs b/src/libstd/rt/local_heap.rs
index 163e69f9686..b9d0d829374 100644
--- a/src/libstd/rt/local_heap.rs
+++ b/src/libstd/rt/local_heap.rs
@@ -326,15 +326,15 @@ pub fn live_allocs() -> *mut Box {
 #[cfg(test)]
 mod bench {
     extern crate test;
-    use self::test::BenchHarness;
+    use self::test::Bencher;
 
     #[bench]
-    fn alloc_managed_small(bh: &mut BenchHarness) {
-        bh.iter(|| { @10; });
+    fn alloc_managed_small(b: &mut Bencher) {
+        b.iter(|| { @10; });
     }
 
     #[bench]
-    fn alloc_managed_big(bh: &mut BenchHarness) {
-        bh.iter(|| { @([10, ..1000]); });
+    fn alloc_managed_big(b: &mut Bencher) {
+        b.iter(|| { @([10, ..1000]); });
     }
 }