Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4175417
  • 博文数量: 291
  • 博客积分: 8003
  • 博客等级: 大校
  • 技术积分: 4275
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-30 18:28
文章分类

全部博文(291)

文章存档

2017年(1)

2013年(47)

2012年(115)

2011年(121)

2010年(7)

分类: 系统运维

2011-06-23 15:43:31

start
今天测试自己写的nginx模块时,出现下面
  1. Server Software: nginx/1.0.4
  2. Server Hostname: 192.168.13.105
  3. Server Port: 8100
  4. Document Path: /notice.txt
  5. Document Length: 15 bytes
  6. Concurrency Level: 10
  7. Time taken for tests: 1.783407 seconds
  8. Complete requests: 10000
  9. Failed requests: 5746
  10. (Connect: 0, Length: 5746, Exceptions: 0)
  11. Write errors: 0
  12. Total transferred: 2034960 bytes
  13. HTML transferred: 154772 bytes
  14. Requests per second: 5607.25 [#/sec] (mean)
  15. Time per request: 1.783 [ms] (mean)
  16. Time per request: 0.178 [ms] (mean, across all concurrent requests)
  17. Transfer rate: 1114.16 [Kbytes/sec] received
但是在ab测试过程中,我手动请求测试url返回正常,而且Requests per second也有5600rps,证明响应很快啊,google了一下,网上有人说是页面内容问题。我把我代码改一下,返回相同的内容后,再测试一下发现:
  1. Failed requests: 0
原来ab测试的错误请求是根据内容来判断的呀
end
阅读(5776) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~