Permalink
Browse files

benchmark/driver.rb: fix typos and output.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 653b0bc commit ee6cfa9cca54082d0e98751b6208a6b3626f3f44 @eregon eregon committed Nov 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 benchmark/driver.rb
View
@@ -146,15 +146,15 @@ def show_results
if @execs.size > 1
output
- output "Speedup ratio comare with the result of `#{@execs[0]}' (greater is better)"
+ output "Speedup ratio: compare with the result of `#{@execs[0][1]}' (greater is better)"
output "name\t#{@execs[1..-1].map{|(_, v)| v}.join("\t")}"
@results.each{|v, result|
rets = []
first_value = nil
s = adjusted_results(v, result){|r|
if first_value
if r == 0
- rets << sprintf("%.3f", "Error")
+ rets << "Error"
else
rets << sprintf("%.3f", first_value/r)
end
@@ -263,7 +263,7 @@ def measure executable, file
parser = OptionParser.new{|o|
o.on('-e', '--executables [EXECS]',
- "Specify benchmark one or more targets. (exec1; exec2; exec3; ...)"){|e|
+ "Specify benchmark one or more targets. (exec1;exec2;exec3;...)"){|e|
opt[:execs] = e.split(/;/)
}
o.on('-d', '--directory [DIRECTORY]', "Benchmark suites directory"){|d|

0 comments on commit ee6cfa9

Please sign in to comment.