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

2022-05-24 21:06:17 +08:00
 v23x

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 实际测一下

1787 次点击
所在节点    V2EX
3 条回复
0o0O0o0O0o
2022-05-24 21:08:11 +08:00
云盾?带上浏览器 cookies 和 headers 试试
Showfom
2022-05-24 22:03:17 +08:00
显然不正常

time curl https://v2ex.com/

测试只要 0.3s 的样子
ab
2022-05-24 22:04:27 +08:00
curl https://v2ex.com/ 0.01s user 0.01s system 1% cpu 1.370 total

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/855060

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX