Обёртка для wrk
#!/bin/bash
COUNT=0
for I in {1..5}; do
MSG=$(wrk -c 4096 -d 10 -t 12 http://127.0.0.1:21000/)
RPS=$(echo "$(echo "$MSG" | grep 'Requests/sec' | tr -dc '.0-9')/1" | bc)
echo "step $I rps $RPS"
COUNT=$(($COUNT+$RPS))
done
COUNT=$(($COUNT/5))
echo
echo "av $COUNT"
echo