动态页面:
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation,
http://www.apache.org/
Benchmarking abc.com (be patient).....done
Server Software: Apache/2.2.8
Server Hostname: abc.com
Server Port: 80
Document Path: /index.php
Document Length: 0 bytes
Concurrency Level: 5
Time taken for tests: 5.154089 seconds
Complete requests: 5
Failed requests: 0
Write errors: 0
Total transferred: 1281 bytes
HTML transferred: 0 bytes
Requests per second: 0.97 [#/sec] (mean)
Time per request: 5154.089 [ms] (mean)
Time per request: 1030.818 [ms] (mean, across all concurrent requests)
Transfer rate: 0.19 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 5049 5128 44.7 5147 5154
Waiting: 46 49 3.2 49 54
Total: 5049 5128 44.7 5147 5154
Percentage of the requests served within a certain time (ms)
50% 5147
66% 5148
75% 5148
80% 5154
90% 5154
95% 5154
98% 5154
99% 5154
100% 5154 (longest request)
ab -n 500 -c 50
########################################################
静态页面:
[root@ns3 ceshi]# ab -n 50 -c 5 http://abc.com/index.html
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation,
http://www.apache.org/
Benchmarking abc.com (be patient).....done
Server Software: Apache/2.2.8
Server Hostname: abc.com
Server Port: 80
Document Path: /index.html
Document Length: 503 bytes
Concurrency Level: 5
Time taken for tests: 0.244243 seconds
Complete requests: 50
Failed requests: 0
Write errors: 0
Total transferred: 39450 bytes
HTML transferred: 25150 bytes
Requests per second: 204.71 [#/sec] (mean)
Time per request: 24.424 [ms] (mean)
Time per request: 4.885 [ms] (mean, across all concurrent requests)
Transfer rate: 155.58 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 6 10 3.3 12 17
Processing: 8 12 3.2 13 23
Waiting: 7 11 3.3 12 23
Total: 14 23 5.9 25 38
Percentage of the requests served within a certain time (ms)
50% 25
66% 27
75% 27
80% 27
90% 29
95% 34
98% 38
99% 38
100% 38 (longest request)