diff options
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/driver.rb | 2 | ||||
-rw-r--r-- | benchmark/other-lang/eval.rb | 4 | ||||
-rw-r--r-- | benchmark/report.rb | 2 | ||||
-rw-r--r-- | benchmark/run.rb | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb index 31c9ac2dc9..c38c4fb3da 100644 --- a/benchmark/driver.rb +++ b/benchmark/driver.rb @@ -48,7 +48,7 @@ class BenchmarkDriver def progress_message *args unless STDOUT.tty? - STDERR.print(*args) + STDERR.print(*args) STDERR.flush end end diff --git a/benchmark/other-lang/eval.rb b/benchmark/other-lang/eval.rb index 3875927389..48a2cea019 100644 --- a/benchmark/other-lang/eval.rb +++ b/benchmark/other-lang/eval.rb @@ -51,14 +51,14 @@ Bench.each{|b| require 'pp' # utime -puts Lang.join("\t") +puts Lang.join("\t") Bench.each_with_index{|b, bi| print b, "\t" puts Result[bi].map{|e| e[0]}.join("\t") } # rtime -puts Lang.join("\t") +puts Lang.join("\t") Bench.each_with_index{|b, bi| print b, "\t" puts Result[bi].map{|e| e[1]}.join("\t") diff --git a/benchmark/report.rb b/benchmark/report.rb index 7aa852fc85..d2dc56b1e1 100644 --- a/benchmark/report.rb +++ b/benchmark/report.rb @@ -25,7 +25,7 @@ end def benchmark cmd rubybin = ENV['RUBY'] || RbConfig.ruby - + IO.popen(rubybin, 'r+'){|io| io.write cmd io.close_write diff --git a/benchmark/run.rb b/benchmark/run.rb index 6ef2943642..0cd2363849 100644 --- a/benchmark/run.rb +++ b/benchmark/run.rb @@ -33,8 +33,8 @@ def bm file bm_name = $1 puts '-----------------------------------------------------------' unless $rubyonly || $matzrubyonly puts "#{bm_name}: " - - + + puts <<EOS unless $matzrubyonly || $rubyonly #{prog} -- @@ -93,7 +93,7 @@ if $0 == __FILE__ ARGV.delete_if{|arg| /\A-/ =~ arg } - + puts "MatzRuby:" system("#{$matzruby_program} -v") puts "Ruby:" |