linux - 如何使用linux命令行计算某些网页上的图像加载时间?

标签 linux image curl page-load-time

最近我一直关注页面加载时间,我关心的是网页上加载某些图像的时间。让我困惑的是如何使用linux命令行来做到这一点。 cURL 有帮助吗?如果是这样,我该怎么办?或者还有其他方法吗?

任何建议和解决方案将不胜感激。

最佳答案

在桌面上或任何您想要的地方创建一个新文件..例如curl-format.txt

将其粘贴到此文件中:

    time_namelookup:  %{time_namelookup}\n
       time_connect:  %{time_connect}\n
    time_appconnect:  %{time_appconnect}\n
   time_pretransfer:  %{time_pretransfer}\n
      time_redirect:  %{time_redirect}\n
 time_starttransfer:  %{time_starttransfer}\n
                    ----------\n
         time_total:  %{time_total}\n

提出请求:

curl -w "@curl-format.txt" -o <path/to/the/file> -s "webpagelink.com"

关于linux - 如何使用linux命令行计算某些网页上的图像加载时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54674201/

相关文章:

c# - 在 C# 代理中从 Web 服务器读取图像

python - 使用带有 Sentiment140 API 的 Urllib 将 Curl 转换为 Python

linux - 如何加入网络摄像头 FLV

jquery添加类问题

regex - 使用 sed 更改配置的 Bash 脚本

javascript - 在 qooxdoo 中为图像添加 CSS 类

php - 错误设置证书验证位置

python - 如何使用 Python Client Rancher 调用电话

linux - 我可以在不重新编译整个内核的情况下将 gcov 用于内核模块吗?

mysql - 将mysql从4.1.22升级到5.0