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