【问题标题】:How to get response time from curl request (via command-line)如何从 curl 请求中获取响应时间(通过命令行)
【发布时间】:2015-08-01 01:27:57
【问题描述】:

如何捕获 CURL 请求的响应时间?

curl https://www.google.com

【问题讨论】:

    标签: performance curl time request


    【解决方案1】:

    我在an article 中找到了这种方法,它以秒为单位返回一个值

    curl -o /dev/null -s -w %{time_total}\\n  https://www.google.com
    

    它输出如下内容:

    0.059
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-10
      • 2014-10-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多