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 time

i'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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -