1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-06-21 08:57:18 +00:00
parent c500791b3e
commit 372272c245
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Jun 21 17:56:25 2013 Koichi Sasada <ko1@atdot.net>
* benchmark/gc/gcbench.rb: fix summary of benchmark result notaton.
Fri Jun 21 16:38:00 2013 Charlie Somerville <charliesome@ruby-lang.org> Fri Jun 21 16:38:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
* ext/openssl/ossl_x509attr.c: change OSSL_X509ATTR_IS_SINGLE and * ext/openssl/ossl_x509attr.c: change OSSL_X509ATTR_IS_SINGLE and

View file

@ -17,11 +17,14 @@ GC::Profiler.report if RUBY_VERSION >= '2.0.0' # before 1.9.3, report() may run
GC::Profiler.disable GC::Profiler.disable
pp GC.stat pp GC.stat
desc = "#{RUBY_VERSION}#{RUBY_PATCHLEVEL >= 0 ? "p#{RUBY_PATCHLEVEL}" : "dev"}"
name = File.basename(script, '.rb')
puts puts
puts script puts script
puts Benchmark::CAPTION puts Benchmark::CAPTION
puts tms puts tms
puts "GC total time (sec): #{gc_time}" puts "GC total time (sec): #{gc_time}"
puts 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)" puts " (real time in sec, GC time in sec, GC count)"