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 | 87da9412bf967acd47c1e270e0890230426eba0d (patch) | |
tree | daac8a2bfe0480e5a4b29aba2abe0e43399c7d76 /benchmark/driver.rb | |
parent | e01b8b2393cd316ddf0a578ab2c32536cabf471e (diff) | |
download | ruby-87da9412bf967acd47c1e270e0890230426eba0d.tar.gz |
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/driver.rb')
-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 |