[前][次][番号順一覧][スレッド一覧]

ruby-changes:29476

From: ko1 <ko1@a...>
Date: Fri, 21 Jun 2013 17:57:33 +0900 (JST)
Subject: [ruby-changes:29476] ko1:r41528 (trunk): * benchmark/gc/gcbench.rb: fix summary of benchmark result notaton.

ko1	2013-06-21 17:57:18 +0900 (Fri, 21 Jun 2013)

  New Revision: 41528

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41528

  Log:
    * benchmark/gc/gcbench.rb: fix summary of benchmark result notaton.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/gc/gcbench.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41527)
+++ ChangeLog	(revision 41528)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jun 21 17:56:25 2013  Koichi Sasada  <ko1@a...>
+
+	* benchmark/gc/gcbench.rb: fix summary of benchmark result notaton.
+
 Fri Jun 21 16:38:00 2013  Charlie Somerville  <charliesome@r...>
 
 	* ext/openssl/ossl_x509attr.c: change OSSL_X509ATTR_IS_SINGLE and
Index: benchmark/gc/gcbench.rb
===================================================================
--- benchmark/gc/gcbench.rb	(revision 41527)
+++ benchmark/gc/gcbench.rb	(revision 41528)
@@ -17,11 +17,14 @@ GC::Profiler.report if RUBY_VERSION >= ' https://github.com/ruby/ruby/blob/trunk/benchmark/gc/gcbench.rb#L17
 GC::Profiler.disable
 pp GC.stat
 
+desc = "#{RUBY_VERSION}#{RUBY_PATCHLEVEL >= 0 ? "p#{RUBY_PATCHLEVEL}" : "dev"}"
+name = File.basename(script, '.rb')
+
 puts
 puts script
 puts Benchmark::CAPTION
 puts tms
 puts "GC total time (sec): #{gc_time}"
 puts
-puts "Summary #{RUBY_DESCRIPTION}\t#{tms.real}\t#{gc_time}\t#{GC.count}"
+puts "Summary of #{name} on #{desc}\t#{tms.real}\t#{gc_time}\t#{GC.count}"
 puts "         (real time in sec, GC time in sec, GC count)"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]