* transcode.c (transcode_restartable): my_transcoder argument removed.
[ruby-svn.git] / benchmark / runc.rb
blob14ab171c121a37cb3ced185e38e4605a2d438e3f
5 require 'benchmark'
6 require 'rbconfig'
8 $rubybin = ENV['RUBY'] || File.join(
9   Config::CONFIG["bindir"],
10   Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"])
12 def runfile file
13   puts file
14   file = File.join(File.dirname($0), 'contrib', file)
15   Benchmark.bm{|x|
16     x.report('ruby'){
17       system("#{$rubybin} #{file}")
18     }
19     x.report('yarv'){
20       system("#{$rubybin} -rite -I.. #{file}")
21     }
22   }
23 end
25 ARGV.each{|file|
26   runfile file