summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-08 03:50:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-08 03:50:32 +0000
commit437a8cc4ca04c88b4669f2c2a4300f4a872911a4 (patch)
tree816a106ac209c654654f96af5d2fe78aaf324f19 /benchmark
parentcaca9a473fd484aec81798fcb6a07bca25977b1d (diff)
downloadruby-437a8cc4ca04c88b4669f2c2a4300f4a872911a4.tar.gz
driver.rb: out output file when loading [ci skip]
* benchmark/driver.rb: default output file is not used when loading rawdata. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/driver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index db97cbf15b..cf24657ded 100644
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -420,7 +420,6 @@ if __FILE__ == $0
}
parser.parse!(ARGV)
- opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
if input = opt[:rawdata_input]
b = open(input) {|f|
@@ -428,6 +427,7 @@ if __FILE__ == $0
}
b.show_results
else
+ opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
BenchmarkDriver.benchmark(opt)
end
end