summaryrefslogtreecommitdiff
path: root/benchmark/driver.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-09 07:42:32 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-09 07:42:32 +0000
commita036c0265033e54e9323f527d9897e19d01400f2 (patch)
treec929cb3e0ec6b9e8bc84c8f0d7e2725d252dc33d /benchmark/driver.rb
parenta5ca1179f39085969a20d498626130adeea6e50e (diff)
downloadruby-a036c0265033e54e9323f527d9897e19d01400f2.tar.gz
* benchmark/driver.rb: fix output messages.
* benchmark/memory_wrapper.rb: use respond_to? because member? does not work well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/driver.rb')
-rw-r--r--benchmark/driver.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index 52d45e17fa..38c6e045f1 100644
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -219,9 +219,9 @@ class BenchmarkDriver
if @execs.size > 1
output
output({
- rss: "Memory consuming ratio (RSS) with the result of `#{@execs[0][1]}' (greater is worse)",
- peak: "Memory consuming ratio (peak) with the result of `#{@execs[0][1]}' (greater is worse)",
- size: "Memory consuming ratio (size) with the result of `#{@execs[0][1]}' (greater is worse)",
+ real: "Speedup ratio: compare with the result of `#{@execs[0][1]}' (greater is better)"
+ peak: "Memory consuming ratio (peak) with the result of `#{@execs[0][1]}' (greater is better)",
+ size: "Memory consuming ratio (size) with the result of `#{@execs[0][1]}' (greater is better)",
}[@measure_target])
output if markdown
output ["name".ljust(name_width), @execs[1..-1].map.with_index{|(_, v), i| sprintf(strformat, v, width[i])}].join("").rstrip