1.直接在shell中执行
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}- %{time_total} - %{http_code}\n" "http://www.xhajyy.cn:10000/" ; done
2.ping命令:ping1024字节的数据包100次
linux下 ping -s 1024 -c 100 www.baidu.com
windows ping -l 1024 -n 100 www.baidu.com