curl 请求检测各阶段用时

发布时间:2025-09-16 02:12

部分游戏会在封闭测试阶段邀请特定用户参与。 #生活乐趣# #游戏乐趣# #游戏测试#

关联问题

换一批

curl

字段解析

NAMELOOKUP:从开始计算,域名解析完成的耗时

CURLINFO_NAMELOOKUP_TIME. The time it took from the start until the name resolving was completed.

CONNECT:从开始计算,TCP建立完成的耗时

CURLINFO_CONNECT_TIME. The time it took from the start until the connect to the remote host (or proxy) was completed.

APPCONNECT:从开始计算,应用层(SSL,在TCP之上的应用层)连接/握手完成的耗时

CURLINFO_APPCONNECT_TIME. The time it took from the start until the SSL connect/handshake with the remote host was completed. (Added in in 7.19.0)

PRETRANSFER:从开始计算,准备开始传输数据的耗时

CURLINFO_PRETRANSFER_TIME. The time it took from the start until the file transfer is just about to begin. This includes all pre-transfer commands and negotiations that are specific to the particular protocol(s) involved.

STARTTRANSFER:从开始计算,开始传输数据的耗时(libcurl接收到第一个字节)

CURLINFO_STARTTRANSFER_TIME. The time it took from the start until the first byte is received by libcurl.

TOTAL:总的耗时

CURLINFO_TOTAL_TIME. Total time of the previous request.

REDIRECT:整个过程重定向的耗时,如果整个过程没有重定向,这个时间为0

CURLINFO_REDIRECT_TIME. The time it took for all redirection steps include name lookup, connect, pretransfer and transfer before final transaction was started. So, this is zero if no redirection took place.

命令使用

代码语言:javascript

代码运行次数:0

运行

AI代码解释

复制

curl -o /dev/null -s -w time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_appconnect:"\t"%{time_appconnect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_starttransfer:"\t"%{time_starttransfer}"\n"time_total:"\t\t"%{time_total}"\n"time_redirect:"\t\t"%{time_redirect}"\n" https://www.litblc.com

返回示例

代码语言:javascript

代码运行次数:0

运行

AI代码解释

复制

time_namelookup:0.000 time_connect:0.032 time_appconnect:0.000 time_pretransfer:0.032 time_starttransfer:0.780 time_total:0.844 time_redirect:0.000 注:这里的单位为秒

文档参考 https://curl.haxx.se/docs/httpscripting.html

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。

推荐阅读

编辑精选文章

换一批

如何使用cURL获得请求和响应时间?

有态度的马甲

2021/12/15

5.6K0

Curl命令分析接口耗时

Curl是一个非常实用的,用来与服务器之间传输数据的工具,支持的协议包括 (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP),Curl设计为无用户交互下完成工作。   Curl提供了一大堆非常有用的功能,包括代理访问、用户认证、Ftp上传下载、HTTP POST、SSL连接、Cookie支持、断点续传 。。。

Luga Lee

2021/12/09

7.8K0

Curl命令分析接口耗时

使用 cURL 对Web请求进行性能测试

Debian中国

2018/12/21

3.1K0

记几个Curl工具使用技巧

大大大黑白格子

2020/06/10

2.9K0

CDN排障系列:curl的高级使用姿势

淡淡的味道

2019/07/05

1.2K0

CDN排障系列:curl的高级使用姿势

Linux - curl -w 参数详解

小菠萝测试笔记

2021/06/17

6K0

Linux - curl -w 参数详解

curl命令查看响应时间

oktokeep

2024/10/09

6340

curl 命令常用场景

Yorkyu

2022/03/22

7080

curl 命令常用场景

使用 cURL 测量网站响应时间

dys

2018/11/30

2.2K0

使用 cURL 测量网站响应时间

通过OpenSSH建立二层和三层加密隧道

用户2323866

2021/06/23

5.1K0

curl 查看时间

22

2020/11/18

4.6K1

测试常用curl工具详解

sheazhang

2019/08/11

4K0

测试常用curl工具详解

将HTTP请求对象转成curl命令行

FunTester

2021/03/11

2.9K0

curl语法整理

ha_lydms

2023/08/10

6230

推荐阅读

编辑精选文章

相关讨论

相关课程

云解析 DNS

域名注册

广告

腾讯云域名特惠,新用户抢购首年只需1元

网址:curl 请求检测各阶段用时 https://klqsh.com/news/view/244848

相关内容

项目各阶段定义及名词解释
水质日检九项检测项目、检测方法及配套检测仪器设备
用于孤独症小鼠模型的行为检测方法(1):社交互动和社交沟通检测
心理专家建议加强员工的心理检测
宠物不同阶段的护理需求与注意事项
托福备考全攻略:时间规划与阶段性目标设定
食品营养成分检测有什么作用
狗粮/猫粮营养检测(NRC标准)
家用电器维修指南:从故障检测到专业服务
无线话筒检测维护及使用技巧

随便看看