curl -o /dev/null -s -w %{http_code}:%{http_connect}:%{content_type}:%{time_namelookup}:%{time_redirect}:%{time_pretransfer}:%{time_connect}:%{time_starttransfer}:%{time_total}:%{speed_download} linuxcache.com

使用curl测试web页面响应加载速度的参数明细

[root@localhost tmp]# curl -V

curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2

Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp

Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

[root@localhost tmp]# ]

The variables available at this point are:

url_effective The URL that was fetched last. This is most meaningful if you’ve told

curl to follow location: headers.

http_code The numerical response code that was found in the last retrieved

HTTP(S) or FTP(s) transfer. In 7.18.2 the alias response_code was

added to show the same info.

http_connect The numerical code that was found in the last response (from a proxy)

to a curl CONNECT request. (Added in 7.12.4)

time_total The total time, in seconds, that the full operation lasted. The time

will be displayed with millisecond resolution.

time_namelookup

The time, in seconds, it took from the start until the name resolving

was completed.

time_connect The time, in seconds, it took from the start until the TCP connect to

the remote host (or proxy) was completed.

time_appconnect

The time, in seconds, it took from the start until the SSL/SSH/etc

connect/handshake to the remote host was completed. (Added in 7.19.0)

time_pretransfer

The time, in seconds, it took from the start until the file transfer

was just about to begin. This includes all pre-transfer commands and

negotiations that are specific to the particular protocol(s) involved.

time_redirect The time, in seconds, it took for all redirection steps include name

lookup, connect, pretransfer and transfer before the final transaction

was started. time_redirect shows the complete execution time for mul-

tiple redirections. (Added in 7.12.3)

time_starttransfer

The time, in seconds, it took from the start until the first byte was

just about to be transferred. This includes time_pretransfer and also

the time the server needed to calculate the result.

size_download The total amount of bytes that were downloaded.

size_upload The total amount of bytes that were uploaded.

size_header The total amount of bytes of the downloaded headers.

size_request The total amount of bytes that were sent in the HTTP request.

speed_download The average download speed that curl measured for the complete down-

load.

speed_upload The average upload speed that curl measured for the complete upload.

content_type The Content-Type of the requested document, if there was any.

num_connects Number of new connects made in the recent transfer. (Added in 7.12.3)

num_redirects Number of redirects that were followed in the request. (Added in

7.12.3)

redirect_url When a HTTP request was made without -L to follow redirects, this

variable will show the actual URL a redirect would take you to. (Added

in 7.18.2)

ftp_entry_path The initial path libcurl ended up in when logging on to the remote FTP

server. (Added in 7.15.4)

ssl_verify_result

The result of the SSL peer certificate verification that was

requested. 0 means the verification was successful. (Added in 7.19.0)

linux测试网页装载时间,使用curl测试web页面响应加载速度相关推荐

  1. linux测试网页装载时间,如何用Flood测试Web服务器响应时间

    当你设置好服务器投入使用后,你最关心的事莫过于服务器的性能了.你可以用一些手动的方法进行测试,但手动方法有很多局限性. 先不论手工测试方法所投入的时间和精力问题,用手工方法测试的一大不足就是它不容易揭 ...

  2. 提高网页加载速度的一些方法和技巧

    网页的加载速度是评估网站质量一个重要指标,原因在于大多数用户能够容忍的网页加载时间只有几秒,如果超出了访客的忍受范围他们会毫不留情地关掉你的网页,所以网页载入速度会极大地影响网站的流量和访问. 以下总 ...

  3. 【PHP】如何提高网页加载速度?

    [php]如何提高网页加载速度? 1.减少页面请求: 从WEB运行原理上讲,IIS请求是无状态的,在服务器端一直是连接和关闭的不断进行着,如果能减少服务器请求,总的时间将会减少. 之前我下载163邮箱 ...

  4. WEB页面SEO —— 提升网页加载速度:对外联css,以及js使用了延迟加载以及dns-prefetch,preconnect,prefetch和prerender

    对于网站SEO概年不清除的同学请看 WEB页面SEO -- 网站TDK优化细节 : 外联CSS以及JS 使用延迟加载只需要将这些外联链接写在body底部即可.接下来讲解dns-prefetch,pre ...

  5. 浅析用Base64编码的图片优化网页加载速度

    想必大家都知道网页加载的过程,从开始请求,到加载页面,开始解析和显示网页,遇到图片就再次向服务器发送请求,加载图片.如果图片很多的话,就会产生大量的http请求,从而影响页面的加载速度.所以现在有一种 ...

  6. 游戏载入速度测试软件,游戏加载速度测试对比

    游戏加载速度测试对比 ● 使命召唤6 说到<使命召唤>系列游戏,对于喜欢FPS(第一人称射击)游戏的玩家来说,一定不会感到陌生,尤其是该系列的第四代<使命召唤4:现代战争>,以 ...

  7. wordpress网站通过17ce测试加载速度,一片红怎么解决?

    求助大神,我的wordpress网站通过17ce测试加载速度一片红, 我服务器是阿里云2上海节点5M带宽服务器,按理不应该这么慢. 我的网站是btsybt.com,求大神看看,多谢.

  8. 分享网页加载速度优化的一些技巧?

    日期:2013-2-17  来源:GBin1.com 不管你是不是相信,在最近的几年里,互联网网页的大小已经显著增大了.由HTTP Archive研究得出的结果表明,目前平均一个页面的大小是1.25M ...

  9. uc点网页显示服务器升级,让uc浏览器网页加载速度提升100%

    摘要: 3G的最大特征就是网速的极大提升,而这正是 uc浏览器 手机浏览器的立身之本. 版本升级速度再提升100% 新发布的uc浏览器进一步改进了WAP/WEB网页的加载方式,不仅有效提高了浏览器的跳 ...

最新文章

  1. 001-Spring Cloud Edgware.SR3 升级最新 Finchley.SR1,spring boot 1.5.9.RELEASE 升级2.0.4.RELEASE注意问题点...
  2. GIS中的拓扑关系和ArcGIS中的拓扑
  3. 输入一个数判断是否对称java_判断对称矩阵 - osc_4mawo3g6的个人空间 - OSCHINA - 中文开源技术交流社区...
  4. Chart Share
  5. php10天速成培训,十天学会php之第九天
  6. 敏捷开发案例:用白板解决项目管理和团队沟通
  7. 周立功TinyM0开发板1114使用教程
  8. 解读“统一价格分评审方法”
  9. 概念数据模型(CDM)
  10. 《新说文解字》太极初成:道生一,一生二,二生三,三生万物
  11. 华为防火墙 相关命令
  12. 证明:如果向量组A可由向量组B线性表示,那么A的秩小于等于B的秩
  13. 迅为iTOP-i.MX6ULL 开发板-Mqtt 移植教程
  14. 一天测血压的最佳时间_一天中什么时间测量血压最准?心血管医生告诉您最佳时间...
  15. 「JVM 故障诊断」命令行工具
  16. 用简单的例子解释量子纠缠
  17. 使用Excel导入SQLyog,Excel提示不能超过255个字符的问题
  18. 《设计的品格 探索×呈现×进化的InDesign美学》—第1课1.7节段落
  19. 【一则杂谈】实体真的不行了?
  20. DNS Web 管理

热门文章

  1. ActiveMQ后台使用
  2. cmakelist .so_卡罗拉汽车音响改装SO匠心三分频,黄金声学
  3. 全面剖析【二叉树】的各类遍历方法
  4. Java拦截器的小例子
  5. 如何用Service来启动背景音乐
  6. 笔记 - Ali Cloud 块存储简介
  7. 2017年5月面试总结
  8. Java获得泛型类中T的实例
  9. java 迪杰斯特拉_Java 实现Dikstra迪杰斯特拉算法 关于单源顶点最短路径问题的求解...
  10. 基数排序算法图解分析