dns - Linux: getting detailed stats for a single HTTP request? -
dns - Linux: getting detailed stats for a single HTTP request? -
i'm writing script determine performance of service client's point of view.
to effect, need able determine few stats each http request like:
dns lookup time tcp connect time tcp transmission timei'd need millisecond resolution values.
what command(s) or perl/python/php libraries give me such information?
check out -w
alternative of curl(1)
. allows things following:
curl -s -o /dev/null -w "dns lookup: %{time_namelookup}\ntcp connect: %{time_connect}\ntotal: %{time_total}\n" http://www.serverfault.com dns lookup: 0.004 tcp connect: 0.104 total: 0.206
this means dns looked in 4 ms, before 100 ms later tcp connection ready , 102 ms later info transmitted.
linux dns performance http command-line
Comments
Post a Comment