speedtest.net/mini.php这里有个SpeedTest:网络宽带速度测试软件工具可以下载。解包后,将index-php.html命名成index.php就可以测试了:
http://www.chedong.com/speedtest/,感兴趣的话请运行一下,并通过留言告诉我你的所在地,ISP服务商(电信/网通,拨号还是ADSL)和测试的下载/上传速度数值,谢谢。
日志记录:
202.165.107.100 - - [04/Nov/2007:19:55:56 +0800] "GET /speedtest/speedtest/random350x350.jpg?x=1194177282218 HTTP/1.1" 200 245388 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9" 202.165.107.100.81561184209038542
202.165.107.100 - - [04/Nov/2007:19:55:58 +0800] "GET /speedtest/speedtest/random350x350.jpg?x=1194177284843 HTTP/1.1" 200 245388 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9" 202.165.107.100.81561184209038542
202.165.107.100 - - [04/Nov/2007:19:55:59 +0800] "POST /speedtest/speedtest/upload.php HTTP/1.1" 200 23 "http://www.chedong.com/speedtest/speedtest.swf?v=1.0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9" 202.165.107.100.81561184209038542
202.165.107.100 - - [04/Nov/2007:19:56:02 +0800] "POST /speedtest/speedtest/upload.php HTTP/1.1" 200 24 "http://www.chedong.com/speedtest/speedtest.swf?v=1.0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9" 202.165.107.100.81561184209038542
基本原理就是下载一个大图片(加了时间戳防止服务器缓存),然后计算下载速率。然后在POST 2个请求给upload.php,计算上传速率(截取日志的时候,upload.php已经被缓存了,所以上传速率比下载的还大);
作者: 车东 发表于:2007-11-04 19:11 最后更新于:2007-11-04 20:11版权声明:可以转载,转载时请务必以超链接形式标明文章 网速测试软件:SpeedTest mini脚本 的原始出处和作者信息及 本版权声明。
http://www.chedong.com/blog/archives/001392.html