1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

driver.rb: measure_target option [ci skip]

* benchmark/driver.rb (BenchmarkDriver.load): restore
  measure_target option from the loaded results.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-01-08 03:51:35 +00:00
parent 437a8cc4ca
commit 4794ce55a5

View file

@ -50,6 +50,7 @@ class BenchmarkDriver
loop = results.assoc((n = "loop_whileloop#{i}").intern) || results.assoc(n)
obj.instance_variable_set("@loop_wl#{i}", loop ? loop[1].map {|t,*|t} : nil)
end
obj.instance_variable_set("@measure_target", opt[:measure_target] || opt["measure_target"])
obj
end