Skip to content

Instantly share code, notes, and snippets.

@destitutus
Last active October 26, 2015 12:03
Show Gist options
  • Save destitutus/f69e3e8a37c55ca56773 to your computer and use it in GitHub Desktop.
Save destitutus/f69e3e8a37c55ca56773 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo "time_namelookup: %{time_namelookup}\n" > curl-format.txt
echo "time_connect: %{time_connect}\n" >> curl-format.txt
echo "time_appconnect: %{time_appconnect}\n" >> curl-format.txt
echo "time_pretransfer: %{time_pretransfer}\n" >> curl-format.txt
echo "time_redirect: %{time_redirect}\n" >> curl-format.txt
echo "time_starttransfer: %{time_starttransfer}\n" >> curl-format.txt
echo "----------\n" >> curl-format.txt
echo "time_total: %{time_total}\n" >> curl-format.txt
for i in {1..10}
do
curl -w "@curl-format.txt" -o /dev/null -s https://realtime.codio.com/p/info
done
rm curl-format.txt
@destitutus
Copy link
Author

bash <(curl -s https://gist.githubusercontent.com/destitutus/f69e3e8a37c55ca56773/raw/5e17a5d4218cca38cf8c163383d2140a2ee8040e/testsjconn)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment