Sha256: a36e6d656ba2bdd6ecfac74e54bedd8686dd86b3f648e70332de684f3e188de9

Contents?: true

Size: 772 Bytes

Versions: 8

Compression:

Stored size: 772 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ruby-jmeter'

test do
  threads count: 100 do # threads = RPS * <max response time ms> / 1000

    throughput_shaper 'increasing load test', [
      { :start_rps => 100, :end_rps => 100, :duration => 60 },
      { :start_rps => 200, :end_rps => 200, :duration => 60 },
      { :start_rps => 300, :end_rps => 300, :duration => 60 },
      { :start_rps => 400, :end_rps => 400, :duration => 60 },
      { :start_rps => 500, :end_rps => 500, :duration => 60 },
      { :start_rps => 600, :end_rps => 600, :duration => 60 }
    ]

    transaction name: 'Google Search' do
      visit name: 'Home Page', url: 'http://google.com/'
    end

  end
end.run(path: '/usr/share/jmeter-2.13/bin/', gui: true)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby-jmeter-2.13.10 examples/basic_throughput_shaping_timer.rb
ruby-jmeter-2.13.9 examples/basic_throughput_shaping_timer.rb
ruby-jmeter-2.13.8 examples/basic_throughput_shaping_timer.rb
ruby-jmeter-2.13.7 examples/basic_throughput_shaping_timer.rb
ruby-jmeter-2.13.6 examples/basic_throughput_shaping_timer.rb
ruby-jmeter-2.13.5 examples/basic_throughput_shaping_timer.rb
ruby-jmeter-2.13.4 examples/basic_throughput_shaping_timer.rb
ruby-jmeter-2.13.3 examples/basic_throughput_shaping_timer.rb