Sha256: 3549c17d74493e3ee5b4fae58a4c7f17fc5b9cbcde00443782fc6e46a0a7f27d

Contents?: true

Size: 412 Bytes

Versions: 47

Compression:

Stored size: 412 Bytes

Contents

url = ARGV.shift
count = (ARGV.shift || 1000).to_i

STDOUT.sync = true

1.upto(5) do |i|
  print "#{i}: "
  str = `ab -n #{count} -c #{i} #{url} 2>/dev/null`

  rs = /Requests per second:\s+([\d.]+)\s/.match(str)
  puts rs[1]
end

puts "Keep Alive:"

1.upto(5) do |i|
  print "#{i}: "
  str = `ab -n #{count} -k -c #{i} #{url} 2>/dev/null`

  rs = /Requests per second:\s+([\d.]+)\s/.match(str)
  puts rs[1]
end

Version data entries

47 entries across 47 versions & 3 rubygems

Version Path
puma-simon-3.7.2 test/ab_rs.rb
puma-simon-3.7.1 test/ab_rs.rb
puma-2.0.0.b2-java test/ab_rs.rb
puma-2.0.0.b2 test/ab_rs.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/puma-1.6.3/test/ab_rs.rb
puma-2.0.0.b1-java test/ab_rs.rb
puma-2.0.0.b1 test/ab_rs.rb
puma-1.6.3-java test/ab_rs.rb
puma-1.6.3 test/ab_rs.rb
puma-1.6.2-java test/ab_rs.rb
puma-1.6.2 test/ab_rs.rb
puma-1.6.1-java test/ab_rs.rb
puma-1.6.1 test/ab_rs.rb
puma-1.6.0-java test/ab_rs.rb
puma-1.6.0 test/ab_rs.rb
puma-1.5.0-java test/ab_rs.rb
puma-1.5.0 test/ab_rs.rb
puma-1.4.0-java test/ab_rs.rb
puma-1.4.0 test/ab_rs.rb
puma-1.3.1-java test/ab_rs.rb