count=0; while [ true ]; do count=`expr $count + 1`; sleep 0.5; curl -o /dev/null -s -w "$count. %{time_namelookup} - %{time_connect} - %{time_starttransfer} - %{speed_download} - %{time_total} - %{http_code}\n" -H "Host:www.sdsjyy.cn" "http://172.16.1.199"; done
Host为需要测试的域名,后面为域名对应的服务器内网地址或页面路径