连接时间:

curl -s -o /dev/null -w “%{time_connect}\n” http://www.joinpay.com

传输时间:

curl -s -o /dev/null -w “%{time_starttransfer}\n” http://www.joinpay.com

总时间:
curl -s -o /dev/null -w “%{time_total}\n” http://www.joinpay.com

 

curl对网站响应时间监控:
[root@localhost script]# curl -o /dev/null -s -w “time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n” “https://www.joinpay.com”
time_connect: 0.015
time_starttransfer: 0.394
time_total: 0.433

版权声明:本文为fanxuanhui-linux原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/fanxuanhui-linux/p/6242823.html