Windows cURL 如何看花了多少时间

 
-s -o /dev/null -w  "%{time_starttransfer}\n"

-s 不显示进度条,

-o 输出重定向到 /dev/null.

-w 用格式 time_starttransfer 取出 the response time.

出处:https://dev.to/yuyatakeyama/how-i-measure-response-times-of-web-apis-using-curl-6nh

https://www.cnblogs.com/liuxia912/p/10956606.html

 

参数

含义

  

time_namelookup

DNS解析域名时间

  

time_connect

TCP连接的时间,三次握手的时间

  

time_starttransfer

从请求开始到第一个字节将要传输的时间

  

time_total

总时间

  

speed_download

下载速度,单位-字节每秒

  

time_appconnect

SSL|SSH等上层连接建立的时间

  

time_pretransfer

从请求开始到响应开始传输的时间

  

time_redirect

从开始到最后一个请求事务的时间

  

 

 

posted on 2020-08-25 10:03  liujx2019  阅读(408)  评论(0编辑  收藏  举报

导航