网站测试工具

Apache Benchmark 简称ab,安装Apache服务器后在/bin/目录下有ab.exe程序。

 

测试使用命令行

ab -n 10 http://domain.com/

-n 表示执行请求次数,10表示请求10次

-c 参数表示并发请求次数

-t 表示指定时间内完成请求

得到如下数据



 

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking zhuanxing.cn (be patient).....done

{服务器信息}
Server Software: Microsoft-IIS/7.5
Server Hostname: zhuanxing.cn
Server Port: 80

 

{文档信息}

Document Path: /

Document Length: 40374 bytes---网页字节数总和

 

{连接信息}

Concurrency Level: 1----------------并非请求总数
Time taken for tests: 3.484 seconds--------花费时间
Complete requests: 10--------------模拟请求次数
Failed requests: 0
Write errors: 0
Total transferred: 406740 bytes-----------整个模拟过程中传输的总数据
HTML transferred: 403740 bytes-----------整个模拟过程中传输内容正文的大学
Requests per second: 2.87 [#/sec] (mean)-------每秒支持的请求数
Time per request: 348.438 [ms] (mean)----------满足一个请求花费的总时间
Time per request: 348.438 [ms] (mean, across all concurrent reque
Transfer rate: 114.00 [Kbytes/sec] received------每秒收到的字节总数

Connection Times (ms)
min mean[+/-sd] median max
Connect: 47 52 10.5 47 78
Processing: 266 297 38.3 281 359
Waiting: 94 105 7.5 109 109
Total: 313 348 39.0 344 406

{测试细节}

Percentage of the requests served within a certain time (ms)
50% 344
66% 375
75% 375
80% 406
90% 406
95% 406
98% 406
99% 406
100% 406 (longest request)

 

 

Siege

#############################

客户端网页分析工具



firebug

YSlow

Paage Speed

Css Usage     

 

########################

js压缩工具和图片压缩工具



yui compressor

google closure

服务器开启Gzip压缩

 

 

posted @ 2011-12-06 17:10  fsl  阅读(291)  评论(0编辑  收藏  举报