v23x
V2EX  ›  V2EX

curl 测试 V2EX 首页耗时 1 秒多 是正常的吗

  •  
  •   v23x · May 24, 2022 · 2897 views
    This topic created in 1466 days ago, the information mentioned may be changed or developed.

    curl -o v.html https://v2ex.com -w %{time_starttransfer},%{time_total}

    1.272809,1.274053

    从结果看 新加坡 vps 到 v2ex.com 网络速度是非常快的 下载耗时才 20 毫秒

    但是 V2EX 首页响应时间 需要 1 秒多

    这太夸张了.不知道是不是针对 curl 做了劣化处理

    curl -A 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36' -o v.html https://v2ex.com -w %{time_starttransfer},%{time_total}

    加了 User Aagent 后也没用

    vps 上没有装图形界面 不然可以用 Firefox 实际测一下

    3 replies    2022-05-24 22:04:27 +08:00
    0o0O0o0O0o
        1
    0o0O0o0O0o  
       May 24, 2022 via iPhone
    云盾?带上浏览器 cookies 和 headers 试试
    Showfom
        2
    Showfom  
    PRO
       May 24, 2022
    显然不正常

    time curl https://v2ex.com/

    测试只要 0.3s 的样子
    ab
        3
    ab  
       May 24, 2022
    curl https://v2ex.com/ 0.01s user 0.01s system 1% cpu 1.370 total
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   834 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 21:23 · PVG 05:23 · LAX 14:23 · JFK 17:23
    ♥ Do have faith in what you're doing.