diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-08 03:51:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-08 03:51:35 +0000 |
commit | 4794ce55a502fdc9692a2f8d32c27381672ac1d7 (patch) | |
tree | daac8a2bfe0480e5a4b29aba2abe0e43399c7d76 /benchmark | |
parent | 437a8cc4ca04c88b4669f2c2a4300f4a872911a4 (diff) |
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
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/driver.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb index cf24657ded..36365af209 100644 --- a/benchmark/driver.rb +++ b/benchmark/driver.rb @@ -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 |