免费注册 查看新帖 |

Chinaunix

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

ab压力测试 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-03 17:34 |只看该作者 |倒序浏览
[root@ibm ~]# ab -n 10000 -c 500 http://192.168.1.200/index.jsp
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.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.1.200
Server Port:            80

Document Path:          /index.jsp
Document Length:        8339 bytes

Concurrency Level:      500
Time taken for tests:   86.621452 seconds
Complete requests:      10000
Failed requests:        10
   (Connect: 0, Length: 10, Exceptions: 0)
Write errors:           0
Non-2xx responses:      10
Total transferred:      85872390 bytes
HTML transferred:       83321420 bytes
Requests per second:    115.44 [#/sec] (mean)
Time per request:       4331.073 [ms] (mean)
Time per request:       8.662 [ms] (mean, across all concurrent requests)
Transfer rate:          968.11 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  138 658.2      0    8998
Processing: -3002 4452 4598.7   3470   49956      ----------------------怎么这里是负数啊?
Waiting:        0 4008 4674.1   2773   49950
Total:          0 4590 4736.0   3494   51806

Percentage of the requests served within a certain time (ms)
  50%   3494
  66%   3770
  75%   4022
  80%   4661
  90%   8517
  95%  12468
  98%  21011
  99%  28662
100%  51806 (longest request)

还有最下面的50%~100%是啥意思啊?不太了解。知道的给说下

论坛徽章:
0
2 [报告]
发表于 2008-09-03 17:39 |只看该作者
百分数是指,完成百分之几的访问需要多少时间。

论坛徽章:
0
3 [报告]
发表于 2008-09-03 17:50 |只看该作者

回复 #2 jerrywjl 的帖子

能讲的通俗点不。。。

论坛徽章:
0
4 [报告]
发表于 2008-09-03 23:43 |只看该作者

就是ab完成对应%50,%60,%70请求……的时候所需要的时间

就是ab完成对应%50,%60,%70请求……的时候所需要的时间

论坛徽章:
0
5 [报告]
发表于 2008-09-04 00:45 |只看该作者
不懂技术了啊,看样子,我快落后啊.

论坛徽章:
0
6 [报告]
发表于 2008-09-04 14:13 |只看该作者
原来还有 ab 这样的好东西呀,一直不知道,还想着什么时候自己写一个呢,这下又长见识了,谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP