当前位置:网站首页>Apache ab 压力测试
Apache ab 压力测试
2022-07-07 02:04:00 【茫茫人海一粒沙】
简介
压测工具有很多,如:LoadRunner、JMeter、ab等等,LoadRunner和JMeter使用相对复杂,ab比较简单
Apache ab 下载与压力测试
下载
Apache VS16 binaries and modules download
下载后解压
然后用cmd进入apache24\bin目录,运行ab. (注意不能直接双击)
然后运行压力测试, 比如
ab -n 5000 -c 100 localhost:8080/sync_result
5000个请求,每次并发100个请求。 localhost:8080/sync_result这个是URL, 默认超时时间是30s.
执行结果如下
Concurrency Level: 100
Time taken for tests: 26.970 seconds
Complete requests: 5000
Failed requests: 4549
(Connect: 0, Receive: 0, Length: 4549, Exceptions: 0)
Total transferred: 909599 bytes
HTML transferred: 244599 bytes
Requests per second: 185.39 [#/sec] (mean)
Time per request: 539.391 [ms] (mean)
Time per request: 5.394 [ms] (mean, across all concurrent requests)
Transfer rate: 32.94 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 1
Processing: 500 517 56.2 509 1326
Waiting: 500 516 54.4 508 997
Total: 500 517 56.2 509 1326
Percentage of the requests served within a certain time (ms)
50% 509
66% 513
75% 515
80% 516
90% 518
95% 521
98% 628
99% 908
100% 1326 (longest request)
如果你要访问时https的url. 那么用下面的命令
abs -n 5000 -c 100 https://localhost:8080/sync_result
边栏推荐
- Redis(二)—Redis通用命令
- CloudCompare-点对选取
- go-microservice-simple(2) go-Probuffer
- 哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
- window下面如何安装swoole
- Audio distortion analysis of DSP and DAC based on adau1452
- A very good JVM interview question article (74 questions and answers)
- 骑士战胜魔王(背包&dp)
- Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
- Doctoral application | Professor Hong Liang, Academy of natural sciences, Shanghai Jiaotong University, enrolls doctoral students in deep learning
猜你喜欢
进程间通信之共享内存
ICML 2022 | explore the best architecture and training method of language model
3531. Huffman tree
为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
LM小型可编程控制器软件(基于CoDeSys)笔记二十三:伺服电机运行(步进电机)相对坐标转换为绝对坐标
How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
生活中的开销,怎么记账合适
哈趣投影黑馬之姿,僅用半年强勢突圍千元投影儀市場!
一段程序让你明白什么静态内部类,局部内部类,匿名内部类
随机推荐
matlab / ENVI 主成分分析实现及结果分析
How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
安装mongodb数据库
693. 行程排序
[FPGA] EEPROM based on I2C
缓存在高并发场景下的常见问题
LM小型可编程控制器软件(基于CoDeSys)笔记二十三:伺服电机运行(步进电机)相对坐标转换为绝对坐标
UIC(组态UI工程)公版文件库新增7款行业素材
Rk3399 platform development series explanation (interruption) 13.10, workqueue work queue
Redis (II) - redis General Command
VMware安装后打开就蓝屏
Force deduction 62 different paths (the number of all paths from the upper left to the lower right of the matrix) (dynamic planning)
Test the foundation of development, and teach you to prepare for a fully functional web platform environment
You don't know the complete collection of recruitment slang of Internet companies
JWT 认证
[SOC FPGA] peripheral PIO button lights up
Doctoral application | Professor Hong Liang, Academy of natural sciences, Shanghai Jiaotong University, enrolls doctoral students in deep learning
Wechat applet hides the progress bar component of the video tag
What are the classic database questions in the interview?
港科大&MSRA新研究:关于图像到图像转换,Fine-tuning is all you need