mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
benchmark/driver.rb: fix typos and output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
653b0bcbaf
commit
ee6cfa9cca
1 changed files with 3 additions and 3 deletions
|
|
@ -146,7 +146,7 @@ class BenchmarkDriver
|
||||||
|
|
||||||
if @execs.size > 1
|
if @execs.size > 1
|
||||||
output
|
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")}"
|
output "name\t#{@execs[1..-1].map{|(_, v)| v}.join("\t")}"
|
||||||
@results.each{|v, result|
|
@results.each{|v, result|
|
||||||
rets = []
|
rets = []
|
||||||
|
|
@ -154,7 +154,7 @@ class BenchmarkDriver
|
||||||
s = adjusted_results(v, result){|r|
|
s = adjusted_results(v, result){|r|
|
||||||
if first_value
|
if first_value
|
||||||
if r == 0
|
if r == 0
|
||||||
rets << sprintf("%.3f", "Error")
|
rets << "Error"
|
||||||
else
|
else
|
||||||
rets << sprintf("%.3f", first_value/r)
|
rets << sprintf("%.3f", first_value/r)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue