Measuring download speed from the command line with curl
command*:
curl -Lo /dev/null -skw "\ntime_connect: %{time_connect}s\ntime_namelookup: %{time_namelookup}s\ntime_pretransfer: %{time_pretransfer}\ntime_starttransfer: %{time_starttransfer}s\ntime_redirect: %{time_redirect}s\ntime_total: %{time_total}s\n\n" http://foolproofcode.com
example result:
time_connect: 0.074s
time_namelookup: 0.063s
time_pretransfer: 0.103
time_starttransfer: 0.278s
time_redirect: 0.067s
time_total: 0.346s
(*) curl -L
= follow redirects
Written by foolproofcode
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#