Class: Drnbench::PublishSubscribe::ProgressiveRunner
- Inherits:
-
Object
- Object
- Drnbench::PublishSubscribe::ProgressiveRunner
- Defined in:
- lib/drnbench/publish-subscribe/progressive-runner.rb
Instance Attribute Summary collapse
-
#total_results ⇒ Object
readonly
Returns the value of attribute total_results.
Instance Method Summary collapse
-
#initialize(config) ⇒ ProgressiveRunner
constructor
A new instance of ProgressiveRunner.
- #run ⇒ Object
Constructor Details
#initialize(config) ⇒ ProgressiveRunner
Returns a new instance of ProgressiveRunner.
24 25 26 27 |
# File 'lib/drnbench/publish-subscribe/progressive-runner.rb', line 24 def initialize(config) @config = config @runner = Runner.new(@config) end |
Instance Attribute Details
#total_results ⇒ Object (readonly)
Returns the value of attribute total_results.
22 23 24 |
# File 'lib/drnbench/publish-subscribe/progressive-runner.rb', line 22 def total_results @total_results end |
Instance Method Details
#run ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/drnbench/publish-subscribe/progressive-runner.rb', line 29 def run results = [] @runner.setup begin @config.n_steps.times do run_once(results) end ensure @runner.teardown end @total_results = [ ["case", "qps"], ] @total_results += results end |