From e81e145c15e693850dd6180ae6547ae74068a6eb Mon Sep 17 00:00:00 2001 From: Lourens Naude Date: Thu, 9 Oct 2008 02:13:40 +0100 Subject: [PATCH] Prefer Objects to GC as label --- test/gc_benchmark.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/gc_benchmark.rb b/test/gc_benchmark.rb index 0f3b397..e5fc7f5 100644 --- a/test/gc_benchmark.rb +++ b/test/gc_benchmark.rb @@ -13,7 +13,7 @@ def countable_gc? end def gc_counts( label, scope ) - $gc_stats << "GC #{scope} ( #{label} ) #{GC.count}" + $gc_stats << "Objects #{scope} ( #{label} ) #{GC.count}" end def with_gc_counts( label ) @@ -24,7 +24,7 @@ def with_gc_counts( label ) n = 1000 -Benchmark.bm do |x| +Benchmark.bmbm do |x| x.report( 'With GC' ) do with_gc_counts( 'With GC' ) do n.times{ with_gc.c_async_query( 'SELECT * FROM user' ) }