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
@ -420,7 +420,6 @@ if __FILE__ == $0
|
|||||||
}
|
}
|
||||||
|
|
||||||
parser.parse!(ARGV)
|
parser.parse!(ARGV)
|
||||||
opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
|
|
||||||
|
|
||||||
if input = opt[:rawdata_input]
|
if input = opt[:rawdata_input]
|
||||||
b = open(input) {|f|
|
b = open(input) {|f|
|
||||||
@ -428,6 +427,7 @@ if __FILE__ == $0
|
|||||||
}
|
}
|
||||||
b.show_results
|
b.show_results
|
||||||
else
|
else
|
||||||
|
opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
|
||||||
BenchmarkDriver.benchmark(opt)
|
BenchmarkDriver.benchmark(opt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user