LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1608|回复: 2

如何测试一个页面的打开速度?

[复制链接]
发表于 2010-9-15 22:04:47 | 显示全部楼层 |阅读模式
RT!
用curl。没有打开图片的时间。只有打开文字的时间。

该用什么呢?perl?php的其他库函数。求大牛指点!!!!:shock:
发表于 2010-9-16 14:10:26 | 显示全部楼层
用shell,命令:time curl http://hi.****china.me
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-9-16 14:18:31 | 显示全部楼层
time curl www.sina.com
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.sina.com.cn/">here</a>.</p>
</body></html>

real        0m0.060s
user        0m0.001s
sys        0m0.004s

curl命令只返回文字的结果。图片不去打开。。。。。这个时间没有实际意义。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表