Chinaunix

标题: 请大家公布一下自己的apache压力测试成绩 [打印本页]

作者: 葱头    时间: 2003-01-27 10:55
标题: 请大家公布一下自己的apache压力测试成绩
请大家按照如下测试:
测试脚本index.php内容为:
<?php
phpinfo();
?>;

用10000个连接,200个并发连接测试:

ab -n 10000 -c 200 http://localhost/index.php

这是我的服务器的成绩:
Server Software: Apache/1.3.27
Server Hostname: localhost
Server Port: 80

Document Path: /index.php
Document Length: 37636 bytes

Concurrency Level: 200
Time taken for tests: 98.909 seconds
Complete requests: 10000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 382272248 bytes
HTML transferred: 380449928 bytes
Requests per second: 101.10 [#/sec] (mean)
Time per request: 1978.18 [ms] (mean)
Time per request: 9.89 [ms] (mean, across all concurrent requests)
Transfer rate: 3864.89 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 1 330 535.8 299 7223
Processing: 138 1616 286.0 1608 3559
Waiting: 90 1615 287.2 1608 3558
Total: 138 1946 597.7 1886 9873

Percentage of the requests served within a certain time (ms)
50% 1886
66% 1899
75% 1924
80% 1985
90% 2195
95% 2312
98% 2713
99% 3025
100% 9873 (last request)

按照这些测试,才有可比性,当然还有其他原因,但总不能苛求一样。

我的硬件为:
PII 333MHz , 288MB RAM , 3.2GB IDE HD , 2M ADSL

这样测试不是让大家互相攀比或者玩benchmark数字游戏,说实在话,这些测试数值没有很大的意义,只作为一些参考,也不值得炫耀,主要是让大家了解以下自己机器的性能,条件允许的话优化一下,对我们也是有好处的,至少可以学到一点东西。
作者: zyme    时间: 2003-01-27 16:22
标题: 请大家公布一下自己的apache压力测试成绩
This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)
Server Software:        Apache/1.3.27                                      
Server Hostname:        localhost
Server Port:            80

Document Path:          /phpinfo.php
Document Length:        53671 bytes

Concurrency Level:      50
Time taken for tests:   71.366 seconds
Complete requests:      1000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      55585683 bytes
HTML transferred:       55397912 bytes
Requests per second:    14.01 [#/sec] (mean)
Time per request:       3568.30 [ms] (mean)
Time per request:       71.37 [ms] (mean, across all concurrent requests)
Transfer rate:          778.88 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   331  258.3    279  1042
Processing:    64  3071 1078.7   3044  7454
Waiting:        0  3018 1083.5   2984  7452
Total:         64  3402 1058.9   3405  7671

Percentage of the requests served within a certain time (ms)
  50%   3405
  66%   3465
  75%   3570
  80%   3645
  90%   4570
  95%   5418
  98%   6099
  99%   6399
100%   7671 (last request)
作者: quakelee    时间: 2003-01-27 16:25
标题: 请大家公布一下自己的apache压力测试成绩
不一样的,装得模块多少会引起phpinfo()函数的返回结果大小不一样,我的就很大
作者: 阿勒    时间: 2003-01-27 18:55
标题: 请大家公布一下自己的apache压力测试成绩
这是freebsd 4.5下的结果

机器 p4 1.7G 256M RAM

vodsvr# ./ab -n 10000 -c 200 http://localhost/index.php
This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests

Test aborted after 10 failures

: Bad file descriptor
vodsvr#

这是redhat advanced server 2.1下的结果
机器 p3 1G 256M RAM

oapro bin]$ ./ab -n 10000 -c 200 http://localhost/index.php
This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.27                                      
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        46154 bytes

Concurrency Level:      200
Time taken for tests:   34.958 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      465789460 bytes
HTML transferred:       464118010 bytes
Requests per second:    286.06 [#/sec] (mean)
Time per request:       699.16 [ms] (mean)
Time per request:       3.50 [ms] (mean, across all concurrent requests)
Transfer rate:          13324.26 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   122  254.3    107  3506
Processing:    38   566  246.2    534  4126
Waiting:       26   565  246.3    533  4125
Total:         38   688  462.8    661  7145

Percentage of the requests served within a certain time (ms)
  50%    661
  66%    666
  75%    675
  80%    676
  90%    720
  95%    865
  98%    932
  99%    964
100%   7145 (last request)

怎么这么郁闷啊,freebsd 下的还不如linux
作者: quakelee    时间: 2003-01-27 19:49
标题: 请大家公布一下自己的apache压力测试成绩
rh的速度真的好快呀!
分析分析怎么回事?
作者: 阿勒    时间: 2003-01-28 09:09
标题: 请大家公布一下自己的apache压力测试成绩
再来一个

redhat 6.2 下
机器 p3 1G 256M ram

./ab -n 10000 -c 200 http://isvr/index.php            
This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 isvr (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.27                                      
Server Hostname:        isvr
Server Port:            80

Document Path:          /index.php
Document Length:        43182 bytes

Concurrency Level:      200
Time taken for tests:   40.448 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      437878596 bytes
HTML transferred:       436204011 bytes
Requests per second:    247.23 [#/sec] (mean)
Time per request:       808.96 [ms] (mean)
Time per request:       4.04 [ms] (mean, across all concurrent requests)
Transfer rate:          10825.72 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    61   36.4     62   193
Processing:    45   736  667.7    701  9557
Waiting:       29   735  667.7    700  9556
Total:         45   797  667.1    784  9588

Percentage of the requests served within a certain time (ms)
  50%    784
  66%    799
  75%    816
  80%    824
  90%    854
  95%    878
  98%    907
  99%    953
100%   9588 (last request)


redhat 7.2 下
机器 p4 1.7G  512M ram

./ab -n 10000 -c 200 http://localhost/index.php
This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.27                                      
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        43575 bytes

Concurrency Level:      200
Time taken for tests:   33.286 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      440673016 bytes
HTML transferred:       439003051 bytes
Requests per second:    300.43 [#/sec] (mean)
Time per request:       665.72 [ms] (mean)
Time per request:       3.33 [ms] (mean, across all concurrent requests)
Transfer rate:          13238.99 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    60  261.2     28  3044
Processing:    24   596  577.6    572 12899
Waiting:        8   596  577.6    571 12898
Total:         24   656  780.2    620 15899

Percentage of the requests served within a certain time (ms)
  50%    620
  66%    648
  75%    657
  80%    663
  90%    687
  95%    709
  98%    732
  99%    799
100%  15899 (last request)
作者: 阿勒    时间: 2003-01-28 09:17
标题: 请大家公布一下自己的apache压力测试成绩
再来跌下眼镜:

SUN E4000 512M ram 4CPU*166MHZ
solaris 7系统

./ab -n 10000 -c 200 http://localhost/index.php
This is ApacheBench, Version 1.3d <$Revision: 1.59 $>; apache-1.3
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 localhost (be patient)

Test aborted after 10 failures

: Bad file number

solaris下竟然是这个结果。
作者: 葱头    时间: 2003-01-28 09:27
标题: 请大家公布一下自己的apache压力测试成绩
阿勒,  你的p4 1.7G 256M RAM 和SUN E4000 居然是: Bad file number ??  连200个并发连接都不行? 但你的p3 1G 256M RAM
相当不错,Requests per second: 286.06 [#/sec] (mean) ,Transfer rate: 13324.26 [Kbytes/sec] received 。

你在使用上觉得RedHat Adserver和普通版的有什么不同?
作者: 阿勒    时间: 2003-01-28 09:41
标题: 请大家公布一下自己的apache压力测试成绩
并不觉得有什么不同。
只是,redhat as那台机器上没有安装其他东西,而其他的除freebsd外的机器上都安装有informix数据库9.21版。
我怀疑sun e4000的数据不准确,或许是和该机器上的informix负载较重有关。但是freebsd下的测试结果实在是出乎我的意料。

除sun外,其他机器都没有进行专门的性能调谐,都是使用的默认安装后的版本。由此可见,redhat as在默认情况下就对企业应用进行了配置。
作者: 葱头    时间: 2003-01-28 10:18
标题: 请大家公布一下自己的apache压力测试成绩
Sun e4000的问题可能跟informix负载有关。
我未用过redhat adserver,想象中它应该是经过优化的。

但我最不明白的是,你的FreeBSD机器怎么会这样呢?我去年一直也是用4.5的,也没有这样的情况,测试结果跟我现在用的4.7差不多。
按你的硬件配置,得出的结果至少不会这样,我也是默认配置没有经过优化的。你的FreeBSD负载重吗?
作者: 阿勒    时间: 2003-01-28 12:27
标题: 请大家公布一下自己的apache压力测试成绩
我觉得和负载好像没什么关系。
把并发数调低,就可以完成测试了。
作者: quakelee    时间: 2003-01-28 13:49
标题: 请大家公布一下自己的apache压力测试成绩
我发现我这里的phpinfo的速度就特别慢,我怀疑是因为我调用的模块太多了,我在做-n 10000的时候也是打不开1000的时候就拒绝服务了
你的rh的php装得模块跟freebsd下面的一样不?
作者: paopaoer    时间: 2003-01-29 13:00
标题: 请大家公布一下自己的apache压力测试成绩
freebsd 4.7   P4 1.7g  256m
测试后把apache关后,居然启动不起来了
真ft.....

[paopaoer@bbs paopaoer]$ab -n 10000 -c 200 http://localhost/phpinfo.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.120 $>; 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 localhost (be patient)
Completed 1000 requests
apr_recv: Connection reset by peer (54)
Total of 1625 requests completed
[paopaoer@bbs paopaoer]$ab -n 10000 -c 20 http://localhost/phpinfo.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.120 $>; 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 localhost (be patient)
apr_recv: Connection reset by peer (54)
Total of 180 requests completed
[paopaoer@bbs paopaoer]$ab -n 10000 -c 2 http://localhost/phpinfo.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.120 $>; 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 localhost (be patient)
apr_recv: Connection reset by peer (54)
Total of 16 requests completed
[paopaoer@bbs paopaoer]$
作者: sunhead    时间: 2003-01-31 12:31
标题: 请大家公布一下自己的apache压力测试成绩
這是我的成績 :

p4 1.6 / 512 DDR / 18G SCSI HD

ab -n 10000 -c 200 http://localhost/info.php
This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.27                                      
Server Hostname:        localhost
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   59.117 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      605564128 bytes
HTML transferred:       603172504 bytes
Requests per second:    169.16 [#/sec] (mean)
Time per request:       1182.34 [ms] (mean)
Time per request:       5.91 [ms] (mean, across all concurrent requests)
Transfer rate:          10243.49 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   178  260.0    164  3419
Processing:    67   984  349.5    949  8499
Waiting:       58   983  349.6    949  8498
Total:         67  1162  552.3   1119 11502

Percentage of the requests served within a certain time (ms)
  50%   1119
  66%   1150
  75%   1166
  80%   1180
  90%   1236
  95%   1331
  98%   1585
  99%   1816
100%  11502 (last request)

這是家中的伺服器 :

Cyrix M2 266 / 128 M  / 8 G HD

ab -n 10000 -c 200 http://localhost/info.php
This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.27                                      
Server Hostname:        localhost
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   1043.663 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      658992379 bytes
HTML transferred:       656592495 bytes
Requests per second:    9.58 [#/sec] (mean)
Time per request:       20873.26 [ms] (mean)
Time per request:       104.37 [ms] (mean, across all concurrent requests)
Transfer rate:          631.42 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1   851    nan    650 48882
Processing:  4601 10903 5682.4   6355 249321
Waiting:     4099 10837 5687.2   6287 249303
Total:       4601 11754 5894.2   7005 249917

Percentage of the requests served within a certain time (ms)
  50%   7005
  66%   7432
  75%   7969
  80%   9209
  90%  17378
  95%  31540
  98%  69961
  99%  116223
100%  249917 (last request)
作者: zkinsz    时间: 2003-05-25 21:06
标题: 请大家公布一下自己的apache压力测试成绩
cd /usr/local/apache/bin

./ab

/usr/libexec/ld-elf.so.1: Shared object "libexpat.so.1" not found

我的BSD是否没有安装完整?!难道不些包漏了?freebsd 4.5 release cvsup 到4.8 stable.

谁知道是怎么回事啊?
作者: cnbluestar    时间: 2003-08-17 16:10
标题: 请大家公布一下自己的apache压力测试成绩
Xeon 1.26 x2 /1024M ECC/18Gx2 + 32Gx2/HP NetRAID Mirror

This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)

                                                                           
Server Software:        Apache/1.3.27
Server Hostname:        localhost
Server Port:            80

Document Path:          /test/show.php
Document Length:        37728 bytes

Concurrency Level:      200
Time taken for tests:   17.078 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      383313615 bytes
HTML transferred:       381336510 bytes
Requests per second:    585.55 [#/sec] (mean)
Time per request:       341.56 [ms] (mean)
Time per request:       1.71 [ms] (mean, across all concurrent requests)
Transfer rate:          22444.88 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        4    66   26.4     68   147
Processing:   228   269   41.5    265   450
Waiting:      143   268   41.7    264   450
Total:        228   335   33.6    335   469

Percentage of the requests served within a certain time (ms)
  50%    335
  66%    347
  75%    356
  80%    361
  90%    376
  95%    389
  98%    413
  99%    424
100%    469 (last request)
作者: cnbluestar    时间: 2003-08-17 16:21
标题: 请大家公布一下自己的apache压力测试成绩
P4 2.4 / 1024M / 160G IDE

This is ApacheBench, Version 1.3d <$Revision: 1.67 $>; apache-1.3
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 localhost (be patient)

                                                                           
Server Software:        Apache/1.3.27
Server Hostname:        localhost
Server Port:            80

Document Path:          /test/show.php
Document Length:        26305 bytes

Concurrency Level:      200
Time taken for tests:   20.929 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      266917800 bytes
HTML transferred:       264943230 bytes
Requests per second:    477.81 [#/sec] (mean)
Time per request:       418.58 [ms] (mean)
Time per request:       2.09 [ms] (mean, across all concurrent requests)
Transfer rate:          12753.49 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    96  481.8     65  6388
Processing:    19   316   52.8    308   548
Waiting:       12   315   52.9    308   547
Total:         19   412  482.6    401  6758

Percentage of the requests served within a certain time (ms)
  50%    401
  66%    402
  75%    405
  80%    406
  90%    415
  95%    460
  98%    530
  99%    548
100%   6758 (last request)
作者: cnbluestar    时间: 2003-08-17 16:28
标题: 请大家公布一下自己的apache压力测试成绩
Transfer rate: 22444.88 [Kbytes/sec]

哈哈,看来RAID卡就是比IDE快不少呀!
作者: dinga    时间: 2003-10-13 13:56
标题: 请大家公布一下自己的apache压力测试成绩
Server Software:        Apache/1.3.28                                      
Server Hostname:        localhost
Server Port:            80

Document Path:          /phpinfo.php
Document Length:        35295 bytes

Concurrency Level:      200
Time taken for tests:   30.599 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      354950000 bytes
HTML transferred:       352950000 bytes
Requests per second:    326.81 [#/sec] (mean)
Time per request:       611.98 [ms] (mean)
Time per request:       3.06 [ms] (mean, across all concurrent requests)
Transfer rate:          11600.05 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        3   286  151.0    286   717
Processing:   523   311  166.2    305  1031
Waiting:       27   308  166.2    302  1030
Total:        523   597  117.0    545  1417

Percentage of the requests served within a certain time (ms)
  50%    545
  66%    583
  75%    616
  80%    634
  90%    740
  95%    789
  98%   1014
  99%   1233
100%   1417 (last request)

1G的CPU 1G的内存 8G的SCSI+80G的IDE
FreeBSD4.8 跑了个IPB的论坛.

PHP的编译

Configure Command  './configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local/mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf' '--enable-track-vars' '--enable-force-cgi-redirect' '--enable-pic' '--enable-inline-optimiation' '--enable-memory-limit' '--enable-debug=no' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal'
作者: skylove    时间: 2004-07-06 08:24
标题: 请大家公布一下自己的apache压力测试成绩
Server Software:        Apache/2.0.46
Server Hostname:        localhost
Server Port:            80

Document Path:          /tt.php
Document Length:        40277 bytes

Concurrency Level:      200
Time taken for tests:   37.456759 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      404730000 bytes
HTML transferred:       402770000 bytes
Requests per second:    266.97 [#/sec] (mean)
Time per request:       749.135 [ms] (mean)
Time per request:       3.746 [ms] (mean, across all concurrent requests)
Transfer rate:          10552.01 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1  73.4      0    3000
Processing:   115  713 1275.6    399   16185
Waiting:        4  461 995.7    220    9014
Total:        115  715 1281.0    399   16185

Percentage of the requests served within a certain time (ms)
  50%    399
  66%    412
  75%    419
  80%    423
  90%    440
  95%   3095
  98%   6035
  99%   6084
100%  16185 (longest request)
作者: dream8888    时间: 2007-03-02 14:07
www# uname -v | awk '{print $1 $2}' ; dmesg | sed -n -e '/CPU/p' -e '/real memory/p' -e '/da0/p' ; ab -c 200 -n 10000 http://127.0.0.1/test/phpinfo.php ; vmstat

FreeBSD6.1-RELEASE
CPU: Intel Pentium III (927.11-MHz 686-class CPU)
real memory  = 268369920 (255 MB)
cpu0: <ACPI CPU> on acpi0
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST39173W SUN9.0G 5084> Fixed Direct Access SCSI-2 device
da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled
da0: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C)
Trying to mount root from ufs:/dev/da0s1a
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 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


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

Document Path:          /test/phpinfo.php
Document Length:        42075 bytes

Concurrency Level:      200
Time taken for tests:   22.365158 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      424280000 bytes
HTML transferred:       420750000 bytes
Requests per second:    447.12 [#/sec] (mean)
Time per request:       447.303 [ms] (mean)
Time per request:       2.237 [ms] (mean, across all concurrent requests)
Transfer rate:          18525.91 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       3
Processing:   118  443  34.4    444     541
Waiting:       58  180  64.9    215     304
Total:        118  443  34.4    444     541

Percentage of the requests served within a certain time (ms)
  50%    444
  66%    449
  75%    454
  80%    455
  90%    459
  95%    475
  98%    515
  99%    524
100%    541 (longest request)
procs      memory      page                    disks     faults      cpu
r b w     avm    fre  flt  re  pi  po  fr  sr da0 pa0   in   sy  cs us sy id
2 1 0  132632 143892   69   0   1   0  51   0   0   0  796 2259 1788  4  4 92
作者: suek    时间: 2007-03-03 17:53
  1. # ab -n 10000 -c 200 http://localhost/phpinfo.php
  2. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/

  5. Benchmarking localhost (be patient)
  6. Completed 1000 requests
  7. Completed 2000 requests
  8. Completed 3000 requests
  9. Completed 4000 requests
  10. Completed 5000 requests
  11. Completed 6000 requests
  12. Completed 7000 requests
  13. Completed 8000 requests
  14. Completed 9000 requests
  15. apr_poll: The timeout specified has expired (70007)
  16. Total of 9995 requests completed
复制代码
估计是ipfw防火墙的问题,导致运行异常
  1. # ab -n 9000 -c 200 http://localhost/phpinfo.php
  2. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/

  5. Benchmarking localhost (be patient)
  6. Completed 900 requests
  7. Completed 1800 requests
  8. Completed 2700 requests
  9. Completed 3600 requests
  10. Completed 4500 requests
  11. Completed 5400 requests
  12. Completed 6300 requests
  13. Completed 7200 requests
  14. Completed 8100 requests
  15. Finished 9000 requests


  16. Server Software:        Apache/2.2.2
  17. Server Hostname:        localhost
  18. Server Port:            80

  19. Document Path:          /phpinfo.php
  20. Document Length:        284 bytes

  21. Concurrency Level:      200
  22. Time taken for tests:   8.414356 seconds
  23. Complete requests:      9000
  24. Failed requests:        0
  25. Write errors:           0
  26. Non-2xx responses:      9000
  27. Total transferred:      4176000 bytes
  28. HTML transferred:       2556000 bytes
  29. Requests per second:    1069.60 [#/sec] (mean)
  30. Time per request:       186.986 [ms] (mean)
  31. Time per request:       0.935 [ms] (mean, across all concurrent requests)
  32. Transfer rate:          484.65 [Kbytes/sec] received

  33. Connection Times (ms)
  34.               min  mean[+/-sd] median   max
  35. Connect:        0    0   3.7      0     351
  36. Processing:    16  184 246.8     96    2573
  37. Waiting:        3  115 178.1     74    2467
  38. Total:         16  184 246.8     96    2573

  39. Percentage of the requests served within a certain time (ms)
  40.   50%     96
  41.   66%    121
  42.   75%    164
  43.   80%    185
  44.   90%    386
  45.   95%    748
  46.   98%   1051
  47.   99%   1355
  48. 100%   2573 (longest request)
复制代码

作者: 乌克兰白鼠    时间: 2007-03-08 09:40
ab -n 10000 -c 200 http://localhost/index.php

这是我的服务器的成绩:
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 localhost (be patient)


Server Software:        Apache/2.2.4
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        60483 bytes

Concurrency Level:      200
Time taken for tests:   53.993790 seconds
Complete requests:      10000
Failed requests:        226
   (Connect: 3, Length: 223, Exceptions: 0)
Write errors:           0
Total transferred:      606748885 bytes
HTML transferred:       604828885 bytes
Requests per second:    185.21 [#/sec] (mean)
Time per request:       1079.876 [ms] (mean)
Time per request:       5.399 [ms] (mean, across all concurrent requests)
Transfer rate:          10974.00 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   45 566.3      3    9695
Processing:    40 1029 217.4   1017    2108
Waiting:        0  273 235.3    201    1269
Total:         41 1074 626.4   1019   11287

Percentage of the requests served within a certain time (ms)
  50%   1019
  66%   1032
  75%   1041
  80%   1049
  90%   1282
  95%   1502
  98%   1679
  99%   1957
100%  11287 (longest request)

我的硬件为:
P4 3.0Hz , 2G RAM , 40G IDE HD , 1M ADSL ,
系统和软件:freebsd r6.2p2 ,软件全编译安装是最新的
作者: cdcchen    时间: 2007-03-14 13:38
p4 2.4  512RAM, 默认配置

This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.0.59
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        296 bytes

Concurrency Level:      200
Time taken for tests:   10.864753 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10000
Total transferred:      4900000 bytes
HTML transferred:       2960000 bytes
Requests per second:    920.41 [#/sec] (mean)
Time per request:       217.295 [ms] (mean)
Time per request:       1.086 [ms] (mean, across all concurrent requests)
Transfer rate:          440.41 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.0      0      67
Processing:    87  211  73.5    179     456
Waiting:        2  133  77.6    120     411
Total:         87  211  73.5    179     458

Percentage of the requests served within a certain time (ms)
  50%    179
  66%    197
  75%    227
  80%    261
  90%    344
  95%    375
  98%    404
  99%    414
100%    458 (longest request)
作者: radarwave    时间: 2007-03-15 10:31
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.36                                      
Server Hostname:        localhost
Server Port:            80

Document Path:          /test/phptest.php
Document Length:        22 bytes

Concurrency Level:      200
Time taken for tests:   5.942 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      3382028 bytes
HTML transferred:       220132 bytes
Requests per second:    1682.94 [#/sec] (mean)
Time per request:       118.84 [ms] (mean)
Time per request:       0.59 [ms] (mean, across all concurrent requests)
Transfer rate:          569.17 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    19  228.2      3  3381
Processing:    31    73   10.0     71   146
Waiting:        8    72   10.0     71   145
Total:         31    92  229.6     74  3486

Percentage of the requests served within a certain time (ms)
  50%     74
  66%     77
  75%     79
  80%     80
  90%     88
  95%     97
  98%    111
  99%    119
100%   3486 (last request)
作者: ashchen    时间: 2007-03-15 13:57
这不是测的apache , 而是测的apache+php
另外测试之前访问一下测试页面是否是那个页面?如果apache不解释php那么就相当于静态文件
作者: likuku    时间: 2007-03-18 21:28
Ubuntu 6.06 自编译 Apache 2.2.4+Php 5.2.1+eAccelerator v0.9.5

赛扬II 1GHz 320M SDRAM 10G 5400RPM Maxtor 91021U2 HDD

apache 编译参数:

  1. ./configure --prefix=/opt/apache --with-mpm=worker --enable-so
复制代码


php 编译参数:

  1. './configure' '--prefix=/opt/php' '--with-apxs2=/opt/apache/bin/apxs' '--disable-ipv6' '--with-mysql=/opt/mysql' '--enable-zend-multibyte' '--with-zlib' '--with-gd=/opt/gd' '--with-exif=/opt/exif' '--enable-mbstring' '--with-mcrypt=/opt/mcrypt' '--with-mhash=/opt/mhash'
复制代码


httpd-mpm.conf 配置:

  1. <IfModule mpm_worker_module>
  2.     StartServers            10
  3.     MaxClients             300
  4.     MinSpareThreads        200
  5.     MaxSpareThreads        256
  6.     ThreadsPerChild          50
  7.     MaxRequestsPerChild   10000
  8. </IfModule>
复制代码


index.php

  1. <?php
  2. phpinfo();
  3. ?>
复制代码


连续3次ab -n 10000 -c 200 测试,取最好成绩:


  1. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  2. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  3. Copyright 2006 The Apache Software Foundation, http://www.apache.org/

  4. Benchmarking localhost (be patient)


  5. Server Software:        Apache/2.2.4
  6. Server Hostname:        localhost
  7. Server Port:            80

  8. Document Path:          /index.php
  9. Document Length:        47463 bytes

  10. Concurrency Level:      200
  11. Time taken for tests:   118.649259 seconds
  12. Complete requests:      10000
  13. Failed requests:        157
  14.    (Connect: 0, Length: 157, Exceptions: 0)
  15. Write errors:           0
  16. Total transferred:      476269215 bytes
  17. HTML transferred:       474629215 bytes
  18. Requests per second:    84.28 [#/sec] (mean)
  19. Time per request:       2372.985 [ms] (mean)
  20. Time per request:       11.865 [ms] (mean, across all concurrent requests)
  21. Transfer rate:          3920.01 [Kbytes/sec] received

  22. Connection Times (ms)
  23.               min  mean[+/-sd] median   max
  24. Connect:        0 1154 671.0   1155    2522
  25. Processing:    50 1216 671.6   1216    2583
  26. Waiting:        0 1127 656.7   1124    2482
  27. Total:       1889 2370  55.5   2355    2586

  28. Percentage of the requests served within a certain time (ms)
  29.   50%   2355
  30.   66%   2361
  31.   75%   2366
  32.   80%   2368
  33.   90%   2405
  34.   95%   2514
  35.   98%   2583
  36.   99%   2585
  37. 100%   2586 (longest request)
  38. Start on
  39. 2007年 03月 18日 星期日 10:37:23 CST
复制代码

[ 本帖最后由 likuku 于 2007-3-18 21:33 编辑 ]
作者: xmumulin    时间: 2007-03-24 15:42
[root@linux html]# ab -n 10000 -c 200 http://localhost/a.php
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


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

Document Path:          /a.php
Document Length:        41650 bytes

Concurrency Level:      200
Time taken for tests:   217.896650 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      419432838 bytes
HTML transferred:       417707850 bytes
Requests per second:    45.89 [#/sec] (mean)
Time per request:       4357.933 [ms] (mean)
Time per request:       21.790 [ms] (mean, across all concurrent requests)
Transfer rate:          1879.80 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  553 1578.3     10   45003
Processing:   142 3791 4636.1   2947  117967
Waiting:       15 2897 4579.9   2591  117858
Total:        143 4344 4921.9   3114  118248

Percentage of the requests served within a certain time (ms)
  50%   3114
  66%   4477
  75%   5189
  80%   5223
  90%   5885
  95%   7319
  98%  11629
  99%  15290
100%  118248 (longest request)
作者: czjin    时间: 2007-04-03 09:54
# ab -n 10000 -c 200 http://localhost/index.php
ksh: ab: not found
我用的是Openbsd3.8自带的Apache和php4.ad是否要另装?
作者: levopat    时间: 2007-04-03 10:20
FreeBSD6.2-RELEASE
CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.13-MHz 686-class CPU)
  Logical CPUs per core: 2
real memory  = 3221012480 (3071 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
SMP: AP CPU #1 Launched!


This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)

                                                                           
Server Software:        Apache/1.3.37
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        274 bytes

Concurrency Level:      200
Time taken for tests:   3.456 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Non-2xx responses:      10086
Total transferred:      4639560 bytes
HTML transferred:       2763564 bytes
Requests per second:    2893.52 [#/sec] (mean)
Time per request:       69.12 [ms] (mean)
Time per request:       0.35 [ms] (mean, across all concurrent requests)
Transfer rate:          1342.47 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        3    25  122.3     22  3078
Processing:    44    43    7.3     39    89
Waiting:       27    42    7.3     39    88
Total:         48    68  122.6     61  3130

Percentage of the requests served within a certain time (ms)
  50%     61
  66%     63
  75%     64
  80%     65
  90%     67
  95%     69
  98%     84
  99%     97
100%   3130 (last request)

[ 本帖最后由 levopat 于 2007-4-3 10:21 编辑 ]
作者: suek    时间: 2007-04-03 14:24
看来还是apache1.3的在这个测试的时候性能更好啊,不知道具体的应用如何
作者: fnet    时间: 2007-04-04 18:51
Server Software:        Apache/2.0.59
Server Hostname:        localhost
Server Port:            80

Document Path:          /phpinfo.php
Document Length:        42628 bytes

Concurrency Level:      200
Time taken for tests:   66.355229 seconds
Complete requests:      10000
Failed requests:        43
   (Connect: 0, Length: 43, Exceptions: 0)
Write errors:           0
Total transferred:      428309785 bytes
HTML transferred:       426279785 bytes
Requests per second:    150.70 [#/sec] (mean)
Time per request:       1327.105 [ms] (mean)
Time per request:       6.636 [ms] (mean, across all concurrent requests)
Transfer rate:          6303.51 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.8      0      59
Processing:   326 1306 279.7   1264    3426
Waiting:       21  817 368.6    792    3351
Total:        326 1306 280.3   1264    3434

Percentage of the requests served within a certain time (ms)
  50%   1264
  66%   1287
  75%   1288
  80%   1288
  90%   1291
  95%   1436
  98%   2284
  99%   3062
100%   3434 (longest request)

晕,2.4G / 256M / 80G IDE
apache2.059 php1.6 mysql5.0
...
作者: lsstarboy    时间: 2007-04-05 00:18
我的PIII800,256M内存。815主板。fxp网卡,从本机测老提示出错,从另一个机器没的结果。
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> 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 192.168.202.18 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.0
Server Hostname:        192.168.202.18
Server Port:            80

Document Path:          /index.php
Document Length:        38006 bytes

Concurrency Level:      200
Time taken for tests:   60.764415 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      382833332 bytes
HTML transferred:       380778412 bytes
Requests per second:    164.57 [#/sec] (mean)
Time per request:       1215.288 [ms] (mean)
Time per request:       6.076 [ms] (mean, across all concurrent requests)
Transfer rate:          6152.61 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  148 835.7      0   12601
Processing:    36 1001 445.0    934    5971
Waiting:        7  746 351.5    728    5329
Total:         58 1150 955.9    951   14251

Percentage of the requests served within a certain time (ms)
  50%    951
  66%   1118
  75%   1220
  80%   1304
  90%   1622
  95%   2325
  98%   4053
  99%   4395
100%  14251 (longest request)
作者: lsstarboy    时间: 2007-04-05 00:33
另一个 双 PIII800的。694X的主板。
Server Software:        Apache
Server Hostname:        192.168.202.19
Server Port:            80

Document Path:          /test.php
Document Length:        33914 bytes

Concurrency Level:      200
Time taken for tests:   41.173292 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      341522629 bytes
HTML transferred:       340107835 bytes
Requests per second:    242.88 [#/sec] (mean)
Time per request:       823.466 [ms] (mean)
Time per request:       4.117 [ms] (mean, across all concurrent requests)
Transfer rate:          8100.35 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  118 494.8      2    6220
Processing:    62  696 199.9    692    1371
Waiting:       15  363 189.9    346    1152
Total:         73  815 530.6    761    7292

Percentage of the requests served within a certain time (ms)
  50%    761
  66%    834
  75%    885
  80%    915
  90%   1026
  95%   1130
  98%   1229
  99%   3484
100%   7292 (longest request)


真强!CPU利用率马上为100%。
作者: lsstarboy    时间: 2007-04-05 00:36
原帖由 cnbluestar 于 2003-8-17 16:28 发表
Transfer rate: 22444.88 [Kbytes/sec]

哈哈,看来RAID卡就是比IDE快不少呀!



弱弱的问题:
这个测试和raid关系不大吧。应该测的是CPU、内存和网卡吧。

并且,如果速率大于11M的话,就应该是1000M的网卡吧。
作者: agoods    时间: 2007-04-15 15:03
原帖由 lsstarboy 于 2007-4-5 00:36 发表



弱弱的问题:
这个测试和raid关系不大吧。应该测的是CPU、内存和网卡吧。

并且,如果速率大于11M的话,就应该是1000M的网卡吧。


我也弱弱的回答一下!仅仅是猜测!

人家用的是localhost测试而你用的是IP远程测试的!所以人家的100M网卡也能超过11M的!^_^
作者: agoods    时间: 2007-04-15 20:42
我也来给个测试成绩

p3 450
256m
6.0 ide

Server Software:        Apache/2.2.4
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        38155 bytes

Concurrency Level:      200
Time taken for tests:   133.837345 seconds
Complete requests:      10000
Failed requests:        1
   (Connect: 1, Length: 0, Exceptions: 0)
Write errors:           0
Total transferred:      383790000 bytes
HTML transferred:       381550000 bytes
Requests per second:    74.72 [#/sec] (mean)
Time per request:       2676.747 [ms] (mean)
Time per request:       13.384 [ms] (mean, across all concurrent requests)
Transfer rate:          2800.37 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   48 616.7      0   10300
Processing:   188 2619 604.3   2598    7043
Waiting:        0  793 499.9    706    4313
Total:        188 2667 995.6   2600   15504

Percentage of the requests served within a certain time (ms)
  50%   2600
  66%   2667
  75%   2713
  80%   2747
  90%   2825
  95%   3062
  98%   5159
  99%   5978
100%  15504 (longest request)

[ 本帖最后由 agoods 于 2007-4-15 20:48 编辑 ]
作者: drivel    时间: 2007-04-19 19:37
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
CPU0: Intel(R) Celeron(R) CPU 2.80GHz stepping 01
Brought up 1 CPUs
256MB RAM




http://localhost/info.php
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/1.3.34
Server Hostname:        localhost
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   26.793662 seconds
Complete requests:      10000
Failed requests:        41
   (Connect: 0, Length: 41, Exceptions: 0)
Write errors:           0
Total transferred:      409319795 bytes
HTML transferred:       407289795 bytes
Requests per second:    373.22 [#/sec] (mean)
Time per request:       535.873 [ms] (mean)
Time per request:       2.679 [ms] (mean, across all concurrent requests)
Transfer rate:          14918.68 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       24  259 129.1    260     492
Processing:    26  275 129.2    275     507
Waiting:        3  242 139.2    242     492
Total:        505  534   4.6    534     546

Percentage of the requests served within a certain time (ms)
  50%    534
  66%    535
  75%    536
  80%    538
  90%    542
  95%    544
  98%    545
  99%    545
100%    546 (longest request)
作者: 老爷车漂移    时间: 2007-07-17 14:19
Failed requests:        0

为什么我的机器测试出来完成1000个请求,居然有827个请求失败呢???
数据如下:

大家帮忙分析一下

Server Software:        Apache/2.2.4
Server Hostname:        192.168.1.66
Server Port:            80

Document Path:          /index.php
Document Length:        42323 bytes

Concurrency Level:      50
Time taken for tests:   13.62500 seconds
Complete requests:      1000
Failed requests:        827
   (Connect: 0, Length: 827, Exceptions: 0)
Write errors:           0
Total transferred:      42535135 bytes
HTML transferred:       42327135 bytes
Requests per second:    76.56 [#/sec] (mean)
Time per request:       653.125 [ms] (mean)
Time per request:       13.063 [ms] (mean, across all concurrent requests)
Transfer rate:          3179.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   5.0      0      15
Processing:    15  639 1029.2    343    8281
Waiting:        0  483 980.3    203    8250
Total:         15  641 1028.9    343    8281

Percentage of the requests served within a certain time (ms)
  50%    343
  66%    500
  75%    625
  80%    703
  90%   1250
  95%   2750
  98%   4437
  99%   6312
100%   8281 (longest request)

机器是很老
赛扬1.1G     384M    15G IDE    BX老板子
作者: water197    时间: 2007-07-17 16:14
Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


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

Document Path:          /test/index.php
Document Length:        212 bytes

Concurrency Level:      200
Time taken for tests:   6.701470 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10029
Total transferred:      4001571 bytes
HTML transferred:       2126148 bytes
Requests per second:    1492.21 [#/sec] (mean)
Time per request:       134.029 [ms] (mean)
Time per request:       0.670 [ms] (mean, across all concurrent requests)
Transfer rate:          583.01 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    7  90.1      3    3022
Processing:    16  123 387.2     90    6348
Waiting:       10  114 386.1     83    6333
Total:         16  130 399.0     93    6377

Percentage of the requests served within a certain time (ms)
  50%     93
  66%     97
  75%    100
  80%    103
  90%    118
  95%    141
  98%    171
  99%    497
100%   6377 (longest request)
作者: chenkangle    时间: 2007-07-18 10:45
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.4
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        207 bytes

Concurrency Level:      200
Time taken for tests:   10.548089 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10000
Total transferred:      4540000 bytes
HTML transferred:       2070000 bytes
Requests per second:    948.04 [#/sec] (mean)
Time per request:       210.962 [ms] (mean)
Time per request:       1.055 [ms] (mean, across all concurrent requests)
Transfer rate:          420.27 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   40 490.4      0    9552
Processing:    34  168  82.5    123     407
Waiting:        0  148  72.6    114     402
Total:         34  209 494.8    123    9734

Percentage of the requests served within a certain time (ms)
  50%    123
  66%    206
  75%    208
  80%    212
  90%    313
  95%    396
  98%    402
  99%    405
100%   9734 (longest request)
作者: liangzer    时间: 2007-07-22 11:18
Server:IBM X3650  Xeon  Dual core 2.0,Memory:6G, disk:146G SCSI (转速:15k)
OS:CentOS 5
刚装的服务器的apache压力测试结果:
10000个连接  200个并发请求

[root@localhost ~]# ab -n 10000 -c 200 http://192.168.0.200/info.php
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 192.168.0.200 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


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

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

Concurrency Level:      200
Time taken for tests:   10.86624 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      429020000 bytes
HTML transferred:       427310000 bytes
Requests per second:    991.41 [#/sec] (mean)
Time per request:       201.732 [ms] (mean)
Time per request:       1.009 [ms] (mean, across all concurrent requests)
Transfer rate:          41536.59 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   21 248.3      0    3004
Processing:     1  139 278.1    112    6235
Waiting:        0  132 278.2    107    6234
Total:          5  161 397.9    112    6467

Percentage of the requests served within a certain time (ms)
  50%    112
  66%    115
  75%    116
  80%    117
  90%    121
  95%    126
  98%    399
  99%   3001
100%   6467 (longest request)
作者: benkernel    时间: 2007-08-09 10:34
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

Document Path:          /phpinfo.php
Document Length:        2 bytes

Concurrency Level:      200
Time taken for tests:   1.325395 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10005
Total transferred:      2771385 bytes
HTML transferred:       20010 bytes
Requests per second:    7544.92 [#/sec] (mean)
Time per request:       26.508 [ms] (mean)
Time per request:       0.133 [ms] (mean, across all concurrent requests)
Transfer rate:          2041.66 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2   2.7      3      21
Processing:     8   21  20.8     21     636
Waiting:        3   18  20.9     18     632
Total:         11   24  21.6     23     642

Percentage of the requests served within a certain time (ms)
  50%     23
  66%     25
  75%     26
  80%     26
  90%     27
  95%     28
  98%     29
  99%     41
100%    642 (longest request)
作者: huzi1986    时间: 2007-08-09 11:01
我的机器配置:celeron 2.26 /512MB RAM /20GB hardisk/845杂板

bsd# ab -n 10000 -c 200 http://localhost/index.php
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.4
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        44290 bytes

Concurrency Level:      200
Time taken for tests:   79.434036 seconds
Complete requests:      10000
Failed requests:        9772
   (Connect: 0, Length: 9772, Exceptions: 0)
Write errors:           0
Total transferred:      445188860 bytes
HTML transferred:       442948860 bytes
Requests per second:    125.89 [#/sec] (mean)
Time per request:       1588.681 [ms] (mean)
Time per request:       7.943 [ms] (mean, across all concurrent requests)
Transfer rate:          5473.15 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   47 560.6      2    9525
Processing:    83 1534 294.3   1526    2945
Waiting:        0  403 306.2    323    1751
Total:         83 1582 662.5   1529   12023

Percentage of the requests served within a certain time (ms)
  50%   1529
  66%   1535
  75%   1537
  80%   1539
  90%   1545
  95%   2153
  98%   2621
  99%   2856
100%  12023 (longest request)
作者: huzi1986    时间: 2007-08-09 11:03
Failed requests:        9772
   (Connect: 0, Length: 9772, Exceptions: 0)


这是昨回事情
作者: suek    时间: 2007-08-09 11:21
原帖由 huzi1986 于 2007-8-9 11:03 发表
Failed requests:        9772
   (Connect: 0, Length: 9772, Exceptions: 0)


这是昨回事情

以你机器的配置,参数改成 -c 10试试看吧,不行的话再降低
作者: cndefu    时间: 2007-11-13 10:20
Intel(R) Pentium(R) D CPU 2.80GHz 512M


[root@localhost bin]# ./ab -n 10000 -c 200 http://localhost/php.php
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

Document Path:          /php.php
Document Length:        40868 bytes

Concurrency Level:      200
Time taken for tests:   21.37070 seconds
Complete requests:      10000
Failed requests:        56
   (Connect: 0, Length: 56, Exceptions: 0)
Write errors:           0
Total transferred:      410499810 bytes
HTML transferred:       409088400 bytes
Requests per second:    475.35 [#/sec] (mean)
Time per request:       420.741 [ms] (mean)
Time per request:       2.104 [ms] (mean, across all concurrent requests)
Transfer rate:          19055.79 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   10 172.0      0    3000
Processing:     2  204 933.2    113   21021
Waiting:        1  200 931.4    112   21019
Total:          6  214 950.5    114   21036

Percentage of the requests served within a certain time (ms)
  50%    114
  66%    114
  75%    115
  80%    115
  90%    120
  95%    145
  98%   1345
  99%   1983
100%  21036 (longest request)
作者: 大狗狗    时间: 2007-11-13 19:48
/usr/local/apache/bin/ab -n 10000 -c 200 http://127.0.0.1/info.php
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 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Lighttpd
Server Hostname:        127.0.0.1
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   16.372095 seconds
Complete requests:      10000
Failed requests:        9710
   (Connect: 0, Length: 9710, Exceptions: 0)
Write errors:           0
Total transferred:      432905213 bytes
HTML transferred:       431064661 bytes
Requests per second:    610.80 [#/sec] (mean)
Time per request:       327.442 [ms] (mean)
Time per request:       1.637 [ms] (mean, across all concurrent requests)
Transfer rate:          25821.86 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   2.1      0      23
Processing:     4  317 1871.9     69   16351
Waiting:        0  294 1872.4     47   16347
Total:          4  318 1873.4     69   16371

Percentage of the requests served within a certain time (ms)
  50%     69
  66%     88
  75%    104
  80%    116
  90%    155
  95%    213
  98%    742
  99%  16173
100%  16371 (longest request)
[root@2 ~]#
作者: llzqq    时间: 2007-11-14 12:23
CPU: PIII 750
RAM: 512M
DISK: IDE 40G
OS:  CentOS 3.8


# ab -n 10000 -c 200 http://localhost/test.php
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache                                             
Server Hostname:        localhost
Server Port:            80

Document Path:          /test.php
Document Length:        34095 bytes

Concurrency Level:      200
Time taken for tests:   57.455 seconds
Complete requests:      10000
Failed requests:        7
   (Connect: 0, Length: 7, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      346370833 bytes
HTML transferred:       344944054 bytes
Requests per second:    174.05 [#/sec] (mean)
Time per request:       1149.10 [ms] (mean)
Time per request:       5.75 [ms] (mean, across all concurrent requests)
Transfer rate:          6028.56 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        4   526  392.0    506  4031
Processing:   679   609  280.3    600  1542
Waiting:       63   604  280.3    595  1542
Total:        740  1135  266.4   1132  4143

Percentage of the requests served within a certain time (ms)
  50%   1132
  66%   1135
  75%   1137
  80%   1138
  90%   1143
  95%   1148
  98%   1156
  99%   1156
100%   4143 (last request)

CPU: CY1.3G
RAM: 512M
DISK: IDE 40G
OS:  CentOS 3.8

# ab -n 10000 -c 200 http://localhost/test.php
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.39                                      
Server Hostname:        localhost
Server Port:            80

Document Path:          /test.php
Document Length:        35172 bytes

Concurrency Level:      200
Time taken for tests:   43.618 seconds
Complete requests:      10000
Failed requests:        9875
   (Connect: 0, Length: 9875, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      356841390 bytes
HTML transferred:       355167300 bytes
Requests per second:    229.26 [#/sec] (mean)
Time per request:       872.36 [ms] (mean)
Time per request:       4.36 [ms] (mean, across all concurrent requests)
Transfer rate:          8181.06 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   112  266.0     89  3225
Processing:    55   746  263.1    733  7848
Waiting:       46   746  263.2    732  7847
Total:         55   858  462.2    836 10853

Percentage of the requests served within a certain time (ms)
  50%    836
  66%    844
  75%    846
  80%    852
  90%    921
  95%   1015
  98%   1170
  99%   2039
100%  10853 (last request)


CPU: AMD 3000+
RAM: 512M
DISK: IDE 40G
OS:  FreeBSD 6.2

# ab -n 10000 -c 200 http://localhost/test.php
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache                                             
Server Hostname:        localhost
Server Port:            80

Document Path:          /test.php
Document Length:        34520 bytes

Concurrency Level:      200
Time taken for tests:   26.405 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      350153928 bytes
HTML transferred:       346718880 bytes
Requests per second:    378.72 [#/sec] (mean)
Time per request:       528.10 [ms] (mean)
Time per request:       2.64 [ms] (mean, across all concurrent requests)
Transfer rate:          13260.89 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1    68   54.4     57   600
Processing:   103   454   86.0    436  1139
Waiting:       72   453   86.2    435  1138
Total:        103   522   90.1    487  1187

[ 本帖最后由 llzqq 于 2007-11-14 12:25 编辑 ]
作者: simoro    时间: 2007-11-15 13:44
T7100 1.8G * 2 DDR2 667 2G 本机测本机 无优化

D:\>ab -n 10000 -c 200 http://localhost/
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Microsoft-IIS/6.0
Server Hostname:        localhost
Server Port:            80

Document Path:          /
Document Length:        39991 bytes

Concurrency Level:      200
Time taken for tests:   19.265625 seconds
Complete requests:      10000
Failed requests:        219
   (Connect: 0, Length: 219, Exceptions: 0)
Write errors:           0
Total transferred:      401422992 bytes
HTML transferred:       399902992 bytes
Requests per second:    519.06 [#/sec] (mean)
Time per request:       385.313 [ms] (mean)
Time per request:       1.927 [ms] (mean, across all concurrent requests)
Transfer rate:          20347.85 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.7      0      15
Processing:    93  381  30.7    375     546
Waiting:       31  317  28.4    312     390
Total:         93  382  30.7    375     546

Percentage of the requests served within a certain time (ms)
  50%    375
  66%    390
  75%    390
  80%    406
  90%    406
  95%    421
  98%    437
  99%    437
100%    546 (longest request)
作者: chenkangle    时间: 2007-11-15 15:44
bsd# ab -n 10000 -c 200 http://192.168.1.1/index.php
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 192.168.1.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.6
Server Hostname:        192.168.1.1
Server Port:            80

Document Path:          /index.php
Document Length:        207 bytes

Concurrency Level:      200
Time taken for tests:   7.430822 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10000
Total transferred:      4540000 bytes
HTML transferred:       2070000 bytes
Requests per second:    1345.75 [#/sec] (mean)
Time per request:       148.616 [ms] (mean)
Time per request:       0.743 [ms] (mean, across all concurrent requests)
Transfer rate:          596.57 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   37 465.5      0    6225
Processing:    23  108  44.6     96     331
Waiting:        0   97  36.9     86     329
Total:         23  146 468.4     96    6382

Percentage of the requests served within a certain time (ms)
  50%     96
  66%     98
  75%     99
  80%    109
  90%    174
  95%    179
  98%    328
  99%    330
100%   6382 (longest request)


不知道我这个怎么样,各位给个说法
作者: cnleon    时间: 2007-11-20 11:19
phpinfo函数我一直是禁用的。。。。。

P41.3  256M   80G ata硬盘


timo# /usr/local/apache/bin/ab -n 10000 -c 200 http://localhost/index1.php
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


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

Document Path:          /index1.php
Document Length:        43383 bytes

Concurrency Level:      200
Time taken for tests:   78.176166 seconds
Complete requests:      10000
Failed requests:        9791
   (Connect: 0, Length: 9791, Exceptions: 0)
Write errors:           0
Total transferred:      435738955 bytes
HTML transferred:       433878955 bytes
Requests per second:    127.92 [#/sec] (mean)
Time per request:       1563.523 [ms] (mean)
Time per request:       7.818 [ms] (mean, across all concurrent requests)
Transfer rate:          5443.17 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   8.9      0     576
Processing:    74 1559 684.9   1368    6401
Waiting:       23  536 509.0    392    4564
Total:         74 1559 686.1   1368    6405

Percentage of the requests served within a certain time (ms)
  50%   1368
  66%   1371
  75%   1396
  80%   1535
  90%   2198
  95%   2573
  98%   4547
  99%   5540
100%   6405 (longest request)

[ 本帖最后由 cnleon 于 2007-11-20 15:33 编辑 ]
作者: llzqq    时间: 2007-11-20 12:13
大家都把机器配置列一下,不然没有可比性
作者: asovo    时间: 2007-11-20 16:18
预留测试:em11:

[ 本帖最后由 asovo 于 2007-11-20 16:26 编辑 ]
作者: vergecity    时间: 2007-11-20 16:26
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 192.168.0.100 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.4
Server Hostname:        192.168.0.100
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   4.875422 seconds
Complete requests:      10000
Failed requests:        15
   (Connect: 0, Length: 15, Exceptions: 0)
Write errors:           0
Total transferred:      441777549 bytes
HTML transferred:       439934973 bytes
Requests per second:    2051.10 [#/sec] (mean)
Time per request:       97.508 [ms] (mean)
Time per request:       0.488 [ms] (mean, across all concurrent requests)
Transfer rate:          88489.37 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1   14   8.0     13      43
Processing:    38   81  14.6     82     332
Waiting:        4   46  10.9     45     277
Total:         52   96  12.7     95     336

Percentage of the requests served within a certain time (ms)
  50%     95
  66%     98
  75%    101
  80%    104
  90%    117
  95%    118
  98%    120
  99%    121
100%    336 (longest request)
作者: tianpu    时间: 2007-12-08 07:21
xeon2.4*2 1GECC*2 SCSI
apache1.3 php4.4

[root@kook bin]# ab -n 10000 -c 200 http://localhost:88/index.php
-bash: ab: command not found
[root@kook bin]# ./ab -n 10000 -c 200 http://localhost:88/index.php
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.39
Server Hostname:        localhost
Server Port:            88

Document Path:          /index.php
Document Length:        29663 bytes

Concurrency Level:      200
Time taken for tests:   12.947 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      301531624 bytes
HTML transferred:       299856214 bytes
Requests per second:    772.38 [#/sec] (mean)
Time per request:       258.94 [ms] (mean)
Time per request:       1.29 [ms] (mean, across all concurrent requests)
Transfer rate:          23289.69 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2    40   22.6     36   178
Processing:   197   216   22.8    217   309
Waiting:       84   215   23.0    216   308
Total:        197   255   21.4    253   448

Percentage of the requests served within a certain time (ms)
  50%    253
  66%    258
  75%    261
  80%    262
  90%    269
  95%    287
  98%    314
  99%    354
100%    448 (last request)
作者: mymtom    时间: 2007-12-08 23:15
Dell D510 Pentium M 1.73G 1G
Windows XP+VMware 6
FreeBSD 6.3 256M

$ ab -n 10000 -c 200 http://localhost/index.php   
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.6
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        30340 bytes

Concurrency Level:      200
Time taken for tests:   27.184635 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      305640000 bytes
HTML transferred:       303400000 bytes
Requests per second:    367.85 [#/sec] (mean)
Time per request:       543.693 [ms] (mean)
Time per request:       2.718 [ms] (mean, across all concurrent requests)
Transfer rate:          10979.58 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.9      0      32
Processing:    43  532  83.2    509     937
Waiting:        8  279 153.4    282     816
Total:         43  532  83.3    509     937

Percentage of the requests served within a certain time (ms)
  50%    509
  66%    520
  75%    556
  80%    558
  90%    589
  95%    667
  98%    844
  99%    873
100%    937 (longest request)
作者: hobbyist    时间: 2007-12-09 10:50
Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   161.703054 seconds
Complete requests:      10000
Failed requests:        155
   (Connect: 0, Length: 155, Exceptions: 0)
Write errors:           0
Total transferred:      443629225 bytes
HTML transferred:       442219225 bytes
Requests per second:    61.84 [#/sec] (mean)
Time per request:       3234.061 [ms] (mean)
Time per request:       16.170 [ms] (mean, across all concurrent requests)
Transfer rate:          2679.18 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   49 615.9      0    9540
Processing:   127 3178 647.5   3075    8145
Waiting:        0  886 634.3    821    5934
Total:        127 3227 972.6   3076   16397

Percentage of the requests served within a certain time (ms)
  50%   3076
  66%   3114
  75%   3162
  80%   3184
  90%   3490
  95%   4091
  98%   5991
  99%   7065
100%  16397 (longest request)



我的小霸王游戏机。

[ 本帖最后由 hobbyist 于 2008-1-27 18:52 编辑 ]
作者: ooojhui    时间: 2007-12-12 22:04
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 xxx.xxx.xxx.xxx (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache
Server Hostname:        xxx.xxx.xxx.xxx
Server Port:            80

Document Path:          /test.php
Document Length:        44987 bytes

Concurrency Level:      200
Time taken for tests:   35.248627 seconds
Complete requests:      10000
Failed requests:        223
   (Connect: 0, Length: 223, Exceptions: 0)
Write errors:           0
Total transferred:      451438885 bytes
HTML transferred:       449868885 bytes
Requests per second:    283.70 [#/sec] (mean)
Time per request:       704.973 [ms] (mean)
Time per request:       3.525 [ms] (mean, across all concurrent requests)
Transfer rate:          12507.10 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   37 468.4      0    6315
Processing:    35  664 189.7    636    1440
Waiting:        0  311 210.2    313    1295
Total:         35  702 494.1    636    6904

Percentage of the requests served within a certain time (ms)
  50%    636
  66%    643
  75%    647
  80%    664
  90%   1011
  95%   1113
  98%   1301
  99%   1430
100%   6904 (longest request)
作者: 5sky    时间: 2007-12-24 16:18
FreeBSD 7.0 beta4
Lighttpd + php 5.2.x

xeon 2.0G / ecc 1024M x 2 / scsi 10k

ab -n 10000 -c 200 http://localhost/index.php      
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Microsoft-IIS/5.0                                 
Server Hostname:        localhost
Server Port:            80

Document Path:          /i.php
Document Length:        345 bytes

Concurrency Level:      200
Time taken for tests:   2.704 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Non-2xx responses:      10010
Total transferred:      5005000 bytes
HTML transferred:       3453450 bytes
Requests per second:    3698.22 [#/sec] (mean)
Time per request:       54.08 [ms] (mean)
Time per request:       0.27 [ms] (mean, across all concurrent requests)
Transfer rate:          1850.96 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0     1    0.9      1     9
Processing:    15    38    2.9     38    48
Waiting:        6    37    2.8     38    47
Total:         15    39    2.1     39    49

Percentage of the requests served within a certain time (ms)
  50%     39
  66%     40
  75%     40
  80%     41
  90%     41
  95%     42
  98%     43
  99%     44
100%     49 (last request)

[ 本帖最后由 5sky 于 2007-12-24 16:25 编辑 ]
作者: lFANS    时间: 2007-12-24 16:57
Intel(R) Xeon(R) CPU           E5310  @ 1.60GHz*2   Memery:2G       SAS:1.5K 146G
Server Software:        Apache/2.2.6
Server Hostname:        www.m6699.com
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   3.309857 seconds
Complete requests:      10000
Failed requests:        10
   (Connect: 0, Length: 10, Exceptions: 0)
Write errors:           0
Total transferred:      435374798 bytes
HTML transferred:       433522470 bytes
Requests per second:    3021.28 [#/sec] (mean)
Time per request:       66.197 [ms] (mean)
Time per request:       0.331 [ms] (mean, across all concurrent requests)
Transfer rate:          128455.70 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2   10   3.0     10      19
Processing:    23   54  22.7     52     676
Waiting:        8   41  23.3     41     668
Total:         33   64  22.1     62     682

Percentage of the requests served within a certain time (ms)
  50%     62
  66%     63
  75%     65
  80%     68
  90%     70
  95%     70
  98%     71
  99%     73
100%    682 (longest request)

[ 本帖最后由 lFANS 于 2007-12-24 17:00 编辑 ]
作者: lFANS    时间: 2007-12-24 17:07
Failed requests:        0
这个系数为0的给我贴出httpd.conf的优化条件好不!
作者: pandalinux    时间: 2007-12-25 01:47
Core2Due 2G SATA HDD
在VMWARE中,

$ ab -n 10000 -c 200 http://localhost/index.php
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.6
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        28770 bytes

Concurrency Level:      200
Time taken for tests:   39.195533 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      290054955 bytes
HTML transferred:       287843850 bytes
Requests per second:    255.13 [#/sec] (mean)
Time per request:       783.911 [ms] (mean)
Time per request:       3.920 [ms] (mean, across all concurrent requests)
Transfer rate:          7226.74 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   14  62.7      0     574
Processing:   191  760 159.2    754    1947
Waiting:        0  322 200.2    300    1322
Total:        250  775 174.9    759    1947

Percentage of the requests served within a certain time (ms)
  50%    759
  66%    812
  75%    854
  80%    877
  90%    999
  95%   1098
  98%   1194
  99%   1351
100%   1947 (longest request)
作者: kufang_he1209    时间: 2007-12-25 11:13
标题: 我的。呵呵
www# ab -n 10000 -c 200 http://192.168.1.88/test.php
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> 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 192.168.1.88 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache
Server Hostname:        192.168.1.88
Server Port:            80

Document Path:          /test.php
Document Length:        29860 bytes

Concurrency Level:      200
Time taken for tests:   35.697229 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      302050068 bytes
HTML transferred:       300630480 bytes
Requests per second:    280.13 [#/sec] (mean)
Time per request:       713.945 [ms] (mean)
Time per request:       3.570 [ms] (mean, across all concurrent requests)
Transfer rate:          8263.11 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   38 465.9      0    6218
Processing:    43  669 239.2    639    2336
Waiting:       39  376 202.3    339    1856
Total:         43  707 519.0    639    6923

Percentage of the requests served within a certain time (ms)
  50%    639
  66%    644
  75%    647
  80%    652
  90%    711
  95%    991
  98%   2266
  99%   2305
100%   6923 (longest request)
作者: humen1    时间: 2007-12-27 11:03
Server Software:        Apache/2.2.6
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.php
Document Length:        44906 bytes

Concurrency Level:      200
Time taken for tests:   81.586736 seconds
Complete requests:      10000
Failed requests:        203
   (Connect: 0, Length: 203, Exceptions: 0)
Write errors:           0
Total transferred:      451448985 bytes
HTML transferred:       449058985 bytes
Requests per second:    122.57 [#/sec] (mean)
Time per request:       1631.735 [ms] (mean)
Time per request:       8.159 [ms] (mean, across all concurrent requests)
Transfer rate:          5403.67 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   49 624.1      0    9443
Processing:    80 1577 682.6   1463    6750
Waiting:        0  707 612.5    667    5087
Total:         80 1626 984.4   1463   14058

Percentage of the requests served within a certain time (ms)
  50%   1463
  66%   1467
  75%   1479
  80%   1500
  90%   1685
  95%   2628
  98%   5411
  99%   6025
100%  14058 (longest request)
/////有什么用意么?
作者: snwxf    时间: 2007-12-27 16:14
Server Software:        Apache/2.0.59
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   22.931590 seconds
Complete requests:      10000
Failed requests:        139
   (Connect: 0, Length: 139, Exceptions: 0)
Write errors:           0
Total transferred:      415619305 bytes
HTML transferred:       413419305 bytes
Requests per second:    436.08 [#/sec] (mean)
Time per request:       458.632 [ms] (mean)
Time per request:       2.293 [ms] (mean, across all concurrent requests)
Transfer rate:          17699.51 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.8      0      10
Processing:    32  455  94.7    441    1080
Waiting:       24  292 116.6    268     968
Total:         32  455  94.8    442    1080

Percentage of the requests served within a certain time (ms)
  50%    442
  66%    449
  75%    471
  80%    489
  90%    520
  95%    603
  98%    682
  99%    922
100%   1080 (longest request)
作者: dancecat    时间: 2007-12-29 11:30
Document Path:          /phpinfo.php
Document Length:        26877 bytes
Concurrency Level:      200
Time taken for tests:   68.232929 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      271010000 bytes
HTML transferred:       268770000 bytes
Requests per second:    146.56 [#/sec] (mean)
Time per request:       1364.659 [ms] (mean)
Time per request:       6.823 [ms] (mean, across all concurrent requests)
Transfer rate:          3878.74 [Kbytes/sec] received
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   49 638.6      0   10457
Processing:    58 1307 883.3    749    5664
Waiting:        0  589 572.8    405    4498
Total:         58 1357 1199.1    749   15084
Percentage of the requests served within a certain time (ms)
  50%    749
  66%   1601
  75%   2106
  80%   2113
  90%   2144
  95%   2858
  98%   4755
  99%   5033
100%  15084 (longest request)


硬件 p e2140 1G内存 上跑虚拟机 分配内存400M
作者: xueleixu    时间: 2007-12-29 16:11
vm虚拟机环境内存是128M 主机是cpu P4 2.66

/service/httpd/bin/ab  -n 10000 -c 200 http://192.168.108.204/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 192.168.108.204 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests

Server Software:        Apache/2.2.6
Server Hostname:        192.168.108.204
Server Port:            80
Document Path:          /index.html
Document Length:        63 bytes
Concurrency Level:      200
Time taken for tests:   12.723663 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      3130626 bytes
HTML transferred:       630126 bytes
Requests per second:    785.94 [#/sec] (mean)
Time per request:       254.473 [ms] (mean)
Time per request:       1.272 [ms] (mean, across all concurrent requests)
Transfer rate:          240.26 [Kbytes/sec] received
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   13 158.8      2    3034
Processing:     0  170 515.0    113   12665
Waiting:        0  156 515.2    103   12664
Total:         50  184 546.2    115   12721
Percentage of the requests served within a certain time (ms)
  50%    115
  66%    134
  75%    153
  80%    162
  90%    190
  95%    225
  98%    422
  99%   1659
100%  12721 (longest request)

[ 本帖最后由 xueleixu 于 2007-12-29 16:13 编辑 ]
作者: lucki    时间: 2008-01-17 02:32
host# ./ab -n 10000 -c 200 http://127.0.0.1/index.php
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


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

Document Path:          /index.php
Document Length:        41106 bytes

Concurrency Level:      200
Time taken for tests:   38.279458 seconds
Complete requests:      10000
Failed requests:        23
   (Connect: 0, Length: 23, Exceptions: 0)
Write errors:           0
Total transferred:      412869885 bytes
HTML transferred:       411059885 bytes
Requests per second:    261.24 [#/sec] (mean)
Time per request:       765.589 [ms] (mean)
Time per request:       3.828 [ms] (mean, across all concurrent requests)
Transfer rate:          10532.88 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.9      0      19
Processing:   224  747 101.6    726    1396
Waiting:       32  466 180.7    453    1240
Total:        224  747 101.7    726    1396

Percentage of the requests served within a certain time (ms)
  50%    726
  66%    743
  75%    766
  80%    790
  90%    826
  95%    871
  98%   1148
  99%   1169
100%   1396 (longest request)
作者: ddrisme    时间: 2008-01-24 00:12
Server Software:        Apache/2.2.3
Server Hostname:        www.inlife.cn
Server Port:            80

Document Path:          /index.htm
Document Length:        29481 bytes

Concurrency Level:      200
Time taken for tests:   65.551555 seconds
Complete requests:      10000
Failed requests:        10
   (Connect: 10, Length: 0, Exceptions: 0)
Write errors:           0
Total transferred:      298377624 bytes
HTML transferred:       295163772 bytes
Requests per second:    152.55 [#/sec] (mean)
Time per request:       1311.031 [ms] (mean)
Time per request:       6.555 [ms] (mean, across all concurrent requests)
Transfer rate:          4445.11 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  321 501.5    322    6610
Processing:   231  979 203.5   1027    1532
Waiting:        0   14 109.2      0    1417
Total:        233 1301 516.2   1370    7531

Percentage of the requests served within a certain time (ms)
  50%   1370
  66%   1377
  75%   1383
  80%   1387
  90%   1412
  95%   1453
  98%   1500
  99%   1560
100%   7531 (longest request)
作者: charles73    时间: 2008-01-26 05:39
主机 Debian4.0r2(p4-2.4G 512M 80G-ide) + vmware6(FreeBSD6.3 mem=64M)
FreeBSD里装了mysql5.1.22+apache2.2.8(worker)+php5.2.5

测试结果:

# ab -n 10000 -c 200 http://localhost/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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.2.8
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.html
Document Length:        44 bytes

Concurrency Level:      200
Time taken for tests:   20.120321 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      3250000 bytes
HTML transferred:       440000 bytes
Requests per second:    497.01 [#/sec] (mean)
Time per request:       402.406 [ms] (mean)
Time per request:       2.012 [ms] (mean, across all concurrent requests)
Transfer rate:          157.70 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.8      0      51
Processing:    81  396 531.8    288    5398
Waiting:       44  306 441.7    236    5179
Total:         81  396 532.5    288    5399

Percentage of the requests served within a certain time (ms)
  50%    288
  66%    324
  75%    334
  80%    345
  90%    403
  95%    504
  98%   2638
  99%   3842
100%   5399 (longest request)

[ 本帖最后由 charles73 于 2008-1-26 05:44 编辑 ]
作者: sucey2008    时间: 2008-01-26 08:22
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 localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software:        Apache/2.0.52
Server Hostname:        localhost
Server Port:            80

Document Path:          /cs.php
Document Length:        37332 bytes

Concurrency Level:      200
Time taken for tests:   51.395183 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      378728704 bytes
HTML transferred:       376981356 bytes
Requests per second:    194.57 [#/sec] (mean)
Time per request:       1027.904 [ms] (mean)
Time per request:       5.140 [ms] (mean, across all concurrent requests)
Transfer rate:          7196.24 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        4  267 813.2    207   21043
Processing:   147  745 195.2    703    1970
Waiting:       12  324 200.3    249    1544
Total:        300 1012 844.3    895   21956

Percentage of the requests served within a certain time (ms)
  50%    895
  66%    986
  75%   1065
  80%   1134
  90%   1341
  95%   1523
  98%   1662
  99%   1785
100%  21956 (longest request)
作者: businesslcp    时间: 2009-04-15 18:19
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 127.0.0.1 (be patient)

Server Software:        Apache/2.2.3
Server Hostname:        127.0.0.1
Server Port:            80
Document Path:          /index.php
Document Length:        1299 bytes
Concurrency Level:      200
Time taken for tests:   9.892619 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10000
Total transferred:      15200000 bytes
HTML transferred:       12990000 bytes
Requests per second:    1010.85 [#/sec] (mean)
Time per request:       197.852 [ms] (mean)
Time per request:       0.989 [ms] (mean, across all concurrent requests)
Transfer rate:          1500.41 [Kbytes/sec] received
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1  67.0      0    3000
Processing:     6  171 727.7     85    9875
Waiting:        6  170 727.7     84    9875
Total:          6  173 731.9     85    9891
Percentage of the requests served within a certain time (ms)
  50%     85
  66%     88
  75%     90
  80%     91
  90%     99
  95%    105
  98%   2272
  99%   2326
100%   9891 (longest request)
RAM:1024    CPU:1.6   HD:80 x 3




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2