From 665555d58f2aa3c1d8aecd7b34392bde6c41b20d Mon Sep 17 00:00:00 2001 From: lpy Date: Wed, 12 Feb 2014 23:39:21 +0800 Subject: return value/use extra::test::black_box in benchmarks --- src/libstd/rt/global_heap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/global_heap.rs b/src/libstd/rt/global_heap.rs index 4bce16706ee..ab279fd3102 100644 --- a/src/libstd/rt/global_heap.rs +++ b/src/libstd/rt/global_heap.rs @@ -112,14 +112,14 @@ mod bench { #[bench] fn alloc_owned_small(bh: &mut BenchHarness) { bh.iter(|| { - ~10; + ~10 }) } #[bench] fn alloc_owned_big(bh: &mut BenchHarness) { bh.iter(|| { - ~[10, ..1000]; + ~[10, ..1000] }) } } -- cgit 1.4.1-3-g733a5