网站压力测试工具

1.Web Bench

Web Bench is very simple tool for benchmarking WWW or proxy servers.

下载地址:http://home.tiscali.cz/~cz210552/webbench.html

./webbench -c500 -t30 http://127.0.0.1/info.php

-c并发请求数

-t运行测试时间

2.ab

#ab -c500 -n100 http://127.0.0.1/info.php

-c并发请求数

-n总的请求个数

# ab -c200 -n1000 http://127.0.0.1/info.php


Server Software:        Apache/2.2.3
Server Hostname:        127.0.0.1
Server Port:            80

Document Path:          /info.php
Document Length:        50014 bytes

Concurrency Level:      200  //并发请求数
Time taken for tests:   2.598296 seconds
Complete requests:      1000  //总请求
Failed requests:        0
Write errors:           0
Total transferred:      50235185 bytes
HTML transferred:       50064014 bytes
Requests per second:    384.87 [#/sec] (mean)  //服务器每秒平均处理请求数
Time per request:       519.659 [ms] (mean)
Time per request:       2.598 [ms] (mean, across all concurrent requests)
Transfer rate:          18880.45 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   21  30.9      8      94
Processing:    39  329 490.5    219    2503
Waiting:       26  321 491.8    210    2503
Total:         83  351 506.4    228    2597

Percentage of the requests served within a certain time (ms)
  50%    228
  66%    234
  75%    240
  80%    244
  90%    295
  95%   1411
  98%   2577
  99%   2591
 100%   2597 (longest request)

 

 

你可能感兴趣的:(职场,测试工具,休闲,网站压力)