|
发表于 2005-7-21 21:16:52
|
显示全部楼层
湖北襄樊,电信ADSL,使用AB测试结果如下:
[php]
myhome:/home/cg# ab -n 1000 -c 200 http://www.linuxsir.cn/bbs/announcement.php?f=77
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> 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.linuxsir.cn (be patient)
apr_recv: Connection timed out (110)
Total of 51 requests completed
myhome:/home/cg# ab -n 100 -c 10 http://www.linuxsir.cn/bbs/announcement.php?f=77
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> 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.linuxsir.cn (be patient).....done
Server Software: Apache/2.0.51
Server Hostname: www.linuxsir.cn
Server Port: 80
Document Path: /bbs/announcement.php?f=77
Document Length: 33939 bytes
Concurrency Level: 10
Time taken for tests: 450.626977 seconds
Complete requests: 100
Failed requests: 9
(Connect: 0, Length: 9, Exceptions: 0)
Write errors: 0
Total transferred: 3570619 bytes
HTML transferred: 3520757 bytes
Requests per second: 0.22 [#/sec] (mean)
Time per request: 45062.698 [ms] (mean)
Time per request: 4506.270 [ms] (mean, across all concurrent requests)
Transfer rate: 7.74 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 712 1116 1241.5 756 9746
Processing: 3943 14626 8432.0 12587 59754
Waiting: 789 2487 4257.1 880 27544
Total: 4704 15742 8917.8 14305 69500
Percentage of the requests served within a certain time (ms)
50% 14305
66% 16328
75% 18377
80% 20334
90% 25552
95% 33109
98% 37185
99% 69500
100% 69500 (longest request)
[/php]
以下是对 http://www.pgsqldb.org/ 使用AB测试的结果,供老大作对比:
[php]
myhome:/home/cg# ab -n 100 -c 10 http://www.pgsqldb.org/ This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> 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.pgsqldb.org (be patient).....done
Server Software: Apache/1.3.33
Server Hostname: www.pgsqldb.org
Server Port: 80
Document Path: /
Document Length: 14590 bytes
Concurrency Level: 10
Time taken for tests: 36.378047 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 1503056 bytes
HTML transferred: 1486728 bytes
Requests per second: 2.75 [#/sec] (mean)
Time per request: 3637.805 [ms] (mean)
Time per request: 363.780 [ms] (mean, across all concurrent requests)
Transfer rate: 40.33 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 59 91 36.9 82 213
Processing: 1338 3312 1188.0 3207 7899
Waiting: 533 2686 1068.9 2618 7129
Total: 1401 3404 1204.1 3312 7986
Percentage of the requests served within a certain time (ms)
50% 3312
66% 3718
75% 4019
80% 4277
90% 4554
95% 5816
98% 7981
99% 7986
100% 7986 (longest request)
myhome:/home/cg#
[/php] |
|