Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
for i in {1..50}; do echo -n "Run # $i :: ";
curl -w 'Return code: %{http_code}; Bytes Received: %{size_download};
Response Time: %{time_total}\n' -m 2 -o /dev/null -s;
done|tee /dev/tty|awk '{ sum+= $NF; n++ } END { if (n > 0) print "Average Response time =",sum / n; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment