mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
caca9a473f
commit
437a8cc4ca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue