diff options
Diffstat (limited to 'tool/gcbench.rb')
-rw-r--r-- | tool/gcbench.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tool/gcbench.rb b/tool/gcbench.rb deleted file mode 100644 index ca9f3cd950..0000000000 --- a/tool/gcbench.rb +++ /dev/null @@ -1,22 +0,0 @@ - -require 'benchmark' -require 'pp' - -script = ARGV.shift || raise - -GC::Profiler.enable -tms = Benchmark.measure{|x| - load script -} -GC::Profiler.report -pp GC.stat - -gc_time = GC::Profiler.total_time - -puts -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 " (real time in sec, GC time in sec, GC count)" |