Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

欢迎大家把服务器的 ab 测试数据贴出来,讨论一下。

[复制链接]
UP.Linux 发表于 2004-1-15 00:57:15 | 显示全部楼层
晕,我就说这几个值这么夸张:
Requests per second:    1415.62 [#/sec] (mean)
Time per request:       70.640 [ms] (mean)
Time per request:       0.706 [ms] (mean, across all concurrent requests)
Transfer rate:          925.82 [Kbytes/sec] received

硬件什么配置? 软件环境?
都列一下吧。:)
回复

使用道具 举报

BENDY 发表于 2004-1-15 01:23:39 | 显示全部楼层
还不是我那216.66.19.90的烂机...
不过我的结果没有作假..
只不过index.php是一个只有几个字的html文件.不需要PHP处理的.
回复

使用道具 举报

BENDY 发表于 2004-1-15 01:27:15 | 显示全部楼层
root@host [~]# ab -n 5000 -c 200 http://www.ldlover.com/index.php3
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.116 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.ldlover.com (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Finished 5000 requests


Server Software:        Apache/1.3.29
Server Hostname:        www.ldlover.com
Server Port:            80

Document Path:          /index.php3
Document Length:        392 bytes

Concurrency Level:      200
Time taken for tests:   4.322089 seconds
Complete requests:      5000
Failed requests:        0
Write errors:           0
Non-2xx responses:      5000
Total transferred:      3355000 bytes
HTML transferred:       1960000 bytes
Requests per second:    1156.85 [#/sec] (mean)
Time per request:       172.884 [ms] (mean)
Time per request:       0.864 [ms] (mean, across all concurrent requests)
Transfer rate:          757.97 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.6      0      22
Processing:    61  168  60.5    158     368
Waiting:       13  121  51.5    113     322
Total:         61  168  60.5    158     368

Percentage of the requests served within a certain time (ms)
  50%    158
  66%    185
  75%    207
  80%    223
  90%    245
  95%    273
  98%    334
  99%    359
100%    368 (longest request)



以上结果如有任何作假成份.我死给你看....

index.php是假的.但index.php3是真的
回复

使用道具 举报

BENDY 发表于 2004-1-15 01:28:49 | 显示全部楼层
不过我没能力做1000个客户连接的测试.....呵....300开始就受不了了...
回复

使用道具 举报

Crossday 发表于 2004-1-15 01:36:17 | 显示全部楼层
谁要dos下的ab啊?~我经常用这个测试开发时算法之间的效率差别 但好像不支持-c参数 一用就出错
回复

使用道具 举报

BENDY 发表于 2004-1-15 02:06:15 | 显示全部楼层
偷偷地给我一个...:)
回复

使用道具 举报

UP.Linux 发表于 2004-1-15 09:08:38 | 显示全部楼层
Originally posted by zhnag at 2004-1-15 01:28:
不过我没能力做1000个客户连接的测试.....呵....300开始就受不了了...


呼呼,那不相上下了,我也做了个200客户的测试,值比你的高了10%,不过失败了十几个请求。负载2.63。一分钟后降为0.00
回复

使用道具 举报

UP.Linux 发表于 2004-1-15 09:09:28 | 显示全部楼层
Originally posted by Crossday at 2004-1-15 01:36:
谁要dos下的ab啊?~我经常用这个测试开发时算法之间的效率差别 但好像不支持-c参数 一用就出错


dos 下的?有 windows 下的最好了,呵呵。
回复

使用道具 举报

up1m 发表于 2004-1-15 23:55:10 | 显示全部楼层
PIII 866
512M SDRAM
34G SCSI

rh9
apache 2.0.48
php  4.3.4
mysql 4.0.16
Discuz 3.1.2

#  ./ab -n 1000 -c 200 http://forum.huawei-3com.com/index.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.4 $> 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 forum.huawei-3com.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software:        Apache/2.0.48
Server Hostname:        forum.huawei-3com.com
Server Port:            80

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

Concurrency Level:      200
Time taken for tests:   31.737488 seconds
Complete requests:      1000
Failed requests:        322
   (Connect: 0, Length: 0, Exceptions: 322)
Write errors:           0
Total transferred:      1024557 bytes
HTML transferred:       587728 bytes
Requests per second:    31.51 [#/sec] (mean)
Time per request:       6347.498 [ms] (mean)
Time per request:       31.737 [ms] (mean, across all concurrent requests)
Transfer rate:          31.51 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  844 1413.0      0    5308
Processing:    63 3031 1466.7   2683    6907
Waiting:     -345    0  14.6      0       0
Total:        216 3876 1539.7   3639    7635

Percentage of the requests served within a certain time (ms)
  50%   3639
  66%   4385
  75%   5388
  80%   5397
  90%   5897
  95%   6514
  98%   6863
  99%   7009
100%   7635 (longest request)
------------------------
上300用户,或者链接数再多些,request就狂timeout
不过俺的技术论坛,平均在线200人可望不可及啊。

不能确定内存是普通的还是DDR的

根据大C的指点,硬盘应该是SCSI的,dmesg | more 看到的提示也有SCSI字样。

呵呵,机不在高,合适就行。

[ Last edited by up1m on 2004-1-16 at 12:08 AM ]
回复

使用道具 举报

Crossday 发表于 2004-1-16 00:00:06 | 显示全部楼层
用df看 如果是sda就是scsi的 hda就是ide的 这个我没有根据 但我见过的机器都是这样的
要么看/proc里面的硬件参数文件

ab for dos在 http://download.discuz.net/ab.exe -c参数好像不能用
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-15 19:03 , Processed in 0.093324 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表