1
0
Fork 0
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:
Nate Berkopec 2020-05-11 10:41:12 +09:00
parent 554b9693a0
commit 87eb88f15d
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6

View file

@ -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)