Chinaunix首页 | 论坛 | 博客
  • 博客访问: 585536
  • 博文数量: 151
  • 博客积分: 3330
  • 博客等级: 中校
  • 技术积分: 1686
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-08 02:41
文章存档

2011年(151)

分类: LINUX

2011-09-24 14:06:24

-n: 发起的请求数
-c: 并发数
 
 
ab -n 5000 -c 1000
  1. [root@rs02 ~]# ab -c 1000 -n 5000 http://192.168.200.130/test.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 2006 The Apache Software Foundation, http://www.apache.org/

  5. Benchmarking 192.168.200.130 (be patient)
  6. Completed 500 requests
  7. Completed 1000 requests
  8. Completed 1500 requests
  9. Completed 2000 requests
  10. Completed 2500 requests
  11. Completed 3000 requests
  12. Completed 3500 requests
  13. Completed 4000 requests
  14. Completed 4500 requests
  15. Finished 5000 requests


  16. Server Software: Apache/2.2.21
  17. Server Hostname: 192.168.200.130
  18. Server Port: 80

  19. Document Path: /test.php
  20. Document Length: 16817 bytes

  21. Concurrency Level: 1000
  22. Time taken for tests: 70.73009 seconds
  23. Complete requests: 5000
  24. Failed requests: 555
  25.    (Connect: 0, Length: 555, Exceptions: 0)
  26. Write errors: 0
  27. Non-2xx responses: 70
  28. Total transferred: 84121175 bytes
  29. HTML transferred: 82944775 bytes
  30. Requests per second: 71.35 [#/sec] (mean)
  31. Time per request: 14014.601 [ms] (mean)
  32. Time per request: 14.015 [ms] (mean, across all concurrent requests)
  33. Transfer rate: 1172.33 [Kbytes/sec] received

  34. Connection Times (ms)
  35.               min mean[+/-sd] median max
  36. Connect: 0 750 3005.3 4 45015
  37. Processing: 6 5966 10101.3 2093 60803
  38. Waiting: 5 5532 9922.5 1876 60803
  39. Total: 231 6717 10717.8 2207 63525

  40. Percentage of the requests served within a certain time (ms)
  41.   50% 2207
  42.   66% 3480
  43.   75% 5283
  44.   80% 7591
  45.   90% 20814
  46.   95% 25541
  47.   98% 49773
  48.   99% 60615
  49.  100% 63525 (longest request)
阅读(2247) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~