summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-17 11:07:05 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-17 11:07:05 +0000
commitee6cfa9cca54082d0e98751b6208a6b3626f3f44 (patch)
treedf8b198aba105732859ce665ff574ad2063625e9 /benchmark
parent653b0bcbafcbddc9811c06e984f1bbeee2330ddf (diff)
benchmark/driver.rb: fix typos and output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/driver.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index c1e4a6c..82b61f2 100644
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -146,7 +146,7 @@ class BenchmarkDriver
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 = []
@@ -154,7 +154,7 @@ class BenchmarkDriver
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 @@ if __FILE__ == $0
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|