Class: Drnbench::PublishSubscribe::ProgressiveRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/drnbench/publish-subscribe/progressive-runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_resultsObject (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

#runObject



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