* tool/rdocbench.rb: add summary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65ad154e2a
commit
55ae2402f4
@ -1,3 +1,7 @@
|
|||||||
|
Thu Jun 20 06:25:39 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* tool/rdocbench.rb: add summary.
|
||||||
|
|
||||||
Thu Jun 20 06:18:01 2013 Koichi Sasada <ko1@atdot.net>
|
Thu Jun 20 06:18:01 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* gc.c (gc_profile_total_time): check objspace->profile.next_index > 0.
|
* gc.c (gc_profile_total_time): check objspace->profile.next_index > 0.
|
||||||
|
@ -10,13 +10,19 @@ Dir.mktmpdir('rdocbench-'){|d|
|
|||||||
args << '--op' << dir
|
args << '--op' << dir
|
||||||
|
|
||||||
GC::Profiler.enable
|
GC::Profiler.enable
|
||||||
Benchmark.bm{|x|
|
tms = Benchmark.measure{|x|
|
||||||
x.report('rdoc'){
|
|
||||||
r = RDoc::RDoc.new
|
r = RDoc::RDoc.new
|
||||||
r.document args
|
r.document args
|
||||||
|
}
|
||||||
GC::Profiler.report
|
GC::Profiler.report
|
||||||
pp GC.stat
|
pp GC.stat
|
||||||
puts "GC Total Time:#{GC::Profiler.total_time}"
|
puts
|
||||||
}
|
puts Benchmark::CAPTION
|
||||||
}
|
puts tms
|
||||||
|
puts "GC total time (sec): #{GC::Profiler.total_time}"
|
||||||
|
puts
|
||||||
|
puts "Summary (ruby): #{RUBY_DESCRIPTION})"
|
||||||
|
puts "Summary (real): #{tms.real} sec"
|
||||||
|
puts "Summary (gctm): #{GC::Profiler.total_time} sec"
|
||||||
|
puts "Summary (gc#) : #{GC.count}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user