To get the time to load a page
$ curl -o /dev/null -s -w
%{time_connect}:%{time_starttransfer}:%{time_total} http://www.google.com
|
Or save a file curl-format.txt
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
|
And run the curl
$ curl -w
"@curl-format.txt" -o /dev/null -s
"http://www.google.com/"
time_namelookup: 0.004
time_connect: 0.010
time_appconnect: 0.000
time_pretransfer: 0.010
time_redirect: 0.000
time_starttransfer: 0.018
----------
time_total: 0.018
|
1 comment:
Thanks for sharing your ideas and view, this is appreciable.
UK VPS Hosting
Post a Comment