Skip to content

Commit

Permalink
benchmark/driver.rb: fix typos and output.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eregon committed Nov 17, 2012
1 parent 653b0bc commit ee6cfa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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|
Expand Down

0 comments on commit ee6cfa9

Please sign in to comment.