mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:54:14 +08:00
extend bench somewhat
This commit is contained in:
@ -126,7 +126,7 @@ def bench(path)
|
|||||||
puts "Running apache bench warmup"
|
puts "Running apache bench warmup"
|
||||||
`ab -n 100 "http://127.0.0.1:#{@port}#{path}"`
|
`ab -n 100 "http://127.0.0.1:#{@port}#{path}"`
|
||||||
puts "Benchmarking #{path}"
|
puts "Benchmarking #{path}"
|
||||||
`ab -n 100 -e tmp/ab.csv "http://127.0.0.1:#{@port}#{path}"`
|
`ab -n 500 -e tmp/ab.csv "http://127.0.0.1:#{@port}#{path}"`
|
||||||
|
|
||||||
percentiles = Hash[*[50, 75, 90, 99].zip([]).flatten]
|
percentiles = Hash[*[50, 75, 90, 99].zip([]).flatten]
|
||||||
CSV.foreach("tmp/ab.csv") do |percent, time|
|
CSV.foreach("tmp/ab.csv") do |percent, time|
|
||||||
|
Reference in New Issue
Block a user