mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Make new benchmark output to tmp
This commit is contained in:
parent
554b9693a0
commit
87eb88f15d
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ ms() {
|
|||
}
|
||||
|
||||
run_wrk() {
|
||||
result=$(wrk -H "Connection: Close" -c "$wrk_c" -t "$wrk_t" -d "$DURATION" --latency "$@" | tee -a wrk.txt)
|
||||
mkdir tmp &>/dev/null || true
|
||||
result=$(wrk -H "Connection: Close" -c "$wrk_c" -t "$wrk_t" -d "$DURATION" --latency "$@" | tee -a tmp/wrk.txt)
|
||||
req_sec=$(echo "$result" | grep "^Requests/sec:" | awk '{print $2}')
|
||||
latency_avg=$(echo "$result" | grep "^\s*Latency.*%" | awk '{print $2}' | ms)
|
||||
latency_stddev=$(echo "$result" | grep "^\s*Latency.*%" | awk '{print $3}' | ms)
|
||||
|
|
Loading…
Add table
Reference in a new issue