[[TOC]]


Http性能测试工具

ab(ApacheBench)

  • 安装:
yum install httpd
  • 使用
ab -n 20 -c 1 192.168.35.1:8988/fortest

参数说明:

-n: 总请求次数;
-c: 并发请求数(默认为1)
  • 结果示例:
[root@localhost ~]# ab -n 20 -c 1 192.168.35.1:8988/fortest
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.35.1 (be patient).....done Server Software:
Server Hostname: 192.168.35.1
Server Port: 8988 Document Path: /fortest
Document Length: 2 bytes Concurrency Level: 1
Time taken for tests: 2.099 seconds //总共耗费时间
Complete requests: 20
Failed requests: 0
Write errors: 0
Total transferred: 2420 bytes
HTML transferred: 40 bytes
Requests per second: 9.53 [#/sec] (mean) //每秒处理请求数量
Time per request: 104.968 [ms] (mean) //每次并发消耗平均时间
Time per request: 104.968 [ms] (mean, across all concurrent requests) //每次请求消耗平时时间
Transfer rate: 1.13 [Kbytes/sec] received Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 1.9 0 9
Processing: 101 104 3.3 103 114
Waiting: 101 103 3.4 102 114
Total: 102 105 3.8 103 114 Percentage of the requests served within a certain time (ms)
50% 103
66% 104
75% 107
80% 108
90% 112
95% 114
98% 114
99% 114
100% 114 (longest request)

最新文章

  1. Microsoft Client Development MVP 2013 - 2014
  2. redis 学习 01(下载 学习资源)
  3. Swift 06.Closures
  4. Git索引
  5. FastDFS connect timed out
  6. Foreach能够循环的本质
  7. 边工作边刷题:70天一遍leetcode: day 84-3
  8. 阿里巴巴Druid数据源,史上最强的数据源,没有之一
  9. 【读书笔记】读《JavaScript模式》 - 对象创建模式
  10. 开放平台鉴权以及OAuth2.0介绍
  11. Vb.Net Xml文档格式化
  12. (转)《深入理解java虚拟机》学习笔记3——垃圾回收算法
  13. PowerDesigner 12.5 汉化破解完整版
  14. Roman Roulette(约瑟夫环模拟)
  15. Skype发布视频API
  16. 用Beautifulsoup 来爬取贴吧图片
  17. Linux学习——shell编程之运算符
  18. Flutter之SliverAppBar
  19. 关于css,js放置位置的问题
  20. netty 的 JBoss Marshalling 编码解码

热门文章

  1. Unity调用Windows对话框保存时另存为弹框
  2. 论Injection的前世今生
  3. 第十三次CCF第四题 1803——04 博弈
  4. PWA需要的技术
  5. 启动服务报错:nested exception is java.lang.NoSuchMethodError: org.apache.cxf.common.jaxb.JAXBUtils.closeUnmarshaller(Ljavax/xml/bind/Unmarshaller;)V
  6. Mysql的两种引擎
  7. (3)HTML常用标签 + 快捷字符
  8. Python3实现生成验证码图片
  9. SQL Server 排序的时候使 null 值排在最后
  10. 打开网页直接弹出qq对话框?