root@host [/home/bendy/www/bbs]# ab -n 500 -c 100 http://www.abc.com/index.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.116 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking www.abc.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests
Server Software: Apache/1.3.29
Server Hostname: www.abc.com
Server Port: 80
Document Path: /index.php
Document Length: 391 bytes
Concurrency Level: 100
Time taken for tests: 0.353202 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Non-2xx responses: 500
Total transferred: 335000 bytes
HTML transferred: 195500 bytes
Requests per second: 1415.62 [#/sec] (mean)
Time per request: 70.640 [ms] (mean)
Time per request: 0.706 [ms] (mean, across all concurrent requests)
Transfer rate: 925.82 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.5 0 11
Processing: 18 62 18.8 61 118
Waiting: 1 32 17.0 33 83
Total: 18 62 18.8 61 118
Percentage of the requests served within a certain time (ms)
50% 61
66% 63
75% 68
80% 70
90% 82
95% 110
98% 115
99% 117
100% 118 (longest request)
root@host [/home/bendy/www/bbs]# w
12:28am up 1 day, 7:05, 1 user, load average: 2.27, 2.75, 2.90
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 219.133.202.102 10:57pm 0.00s 0.47s 0.06s w
root@host [/home/bendy/www/bbs]#
由于我的负荷高...只用500/100来测试 |