免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6573 | 回复: 1
打印 上一主题 下一主题

[Web] ab测试结果,请进来帮忙解释下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-27 17:19 |只看该作者 |倒序浏览
这是2台机器的结果,解释下每个段落都是什么项目


D:\xampplite\apache\bin>ab -n 1000 -c 1000 http://127.0.0.1/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 127.0.0.1 (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.2.6
Server Hostname:        127.0.0.1
Server Port:            80

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

Concurrency Level:      1000
Time taken for tests:   8.609375 seconds
Complete requests:      1000
Failed requests:        5
   (Connect: 5, Length: 0, Exceptions: 0)
Write errors:           0
Total transferred:      541000 bytes
HTML transferred:       202000 bytes
Requests per second:    116.15 [#/sec] (mean)
Time per request:       8609.375 [ms] (mean)
Time per request:       8.609 [ms] (mean, across all concurrent requests)
Transfer rate:          61.33 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2  44.3      0    1078
Processing:   390 5697 2427.5   5359    8203
Waiting:      390 5642 2416.5   5265    8187
Total:        390 5699 2424.2   5359    8203

Percentage of the requests served within a certain time (ms)
  50%   5359
  66%   7984
  75%   8000
  80%   8031
  90%   8109
  95%   8156
  98%   8187
  99%   8187
100%   8203 (longest request)














www# ab -n 1000 -c 1000 http://127.0.0.1/404.htm
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 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.2.4
Server Hostname:        127.0.0.1
Server Port:            80

Document Path:          /404.htm
Document Length:        3086 bytes

Concurrency Level:      1000
Time taken for tests:   1.98487 seconds
Complete requests:      1000
Failed requests:        1
   (Connect: 1, Length: 0, Exceptions: 0)
Write errors:           0
Total transferred:      3442296 bytes
HTML transferred:       3095258 bytes
Requests per second:    910.34 [#/sec] (mean)
Time per request:       1098.487 [ms] (mean)
Time per request:       1.098 [ms] (mean, across all concurrent requests)
Transfer rate:          3059.66 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    7  23.1      0      87
Processing:    66  128  16.7    130     249
Waiting:        0  102  49.8    123     153
Total:        105  135  25.4    131     278

Percentage of the requests served within a certain time (ms)
  50%    131
  66%    138
  75%    143
  80%    144
  90%    150
  95%    203
  98%    226
  99%    233
100%    278 (longest request)

论坛徽章:
0
2 [报告]
发表于 2008-03-28 17:47 |只看该作者
结果讲的挺清楚的
请求了几个,成功了几个,处理一个需要时间,每秒处理的请求
都挺清晰的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP