Last Updated: February 25, 2016
·
12.36K
· foolproofcode

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