diff options
| author | lpy <pylaurent1314@gmail.com> | 2014-02-12 23:39:21 +0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-14 07:45:34 -0800 |
| commit | 665555d58f2aa3c1d8aecd7b34392bde6c41b20d (patch) | |
| tree | e119df824f7b13480de745508fff441e2add6c8f /src/libstd/rt | |
| parent | 18477ac68a3daf8260be17be368f59a65c3b7527 (diff) | |
| download | rust-665555d58f2aa3c1d8aecd7b34392bde6c41b20d.tar.gz rust-665555d58f2aa3c1d8aecd7b34392bde6c41b20d.zip | |
return value/use extra::test::black_box in benchmarks
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/global_heap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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] }) } } |
