当前位置:网站首页>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
边栏推荐
- Test the foundation of development, and teach you to prepare for a fully functional web platform environment
- 当我们谈论不可变基础设施时,我们在谈论什么
- JMeter function assistant - random value, random string, fixed value random extraction
- Several key steps of software testing, you need to know
- Qtthread, one of many methods of QT multithreading
- JVM 全面深入
- PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
- Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
- [SOC FPGA] peripheral PIO button lights up
- FlexRay通信协议概述
猜你喜欢
![[SOC FPGA] peripheral PIO button lights up](/img/34/58728bddbf91eb69e9c0062dbfd531.jpg)
[SOC FPGA] peripheral PIO button lights up

高并发大流量秒杀方案思路

Peripheral driver library development notes 43: GPIO simulation SPI driver

雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业

拼多多败诉:“砍价免费拿”侵犯知情权但不构成欺诈,被判赔400元

生活中的开销,怎么记账合适

rt-thread 中对 hardfault 的处理

为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾

【OpenCV】形态学滤波(2):开运算、形态学梯度、顶帽、黑帽

3531. 哈夫曼树
随机推荐
tkinter窗口选择pcd文件并显示点云(open3d)
开发者别错过!飞桨黑客马拉松第三期链桨赛道报名开启
What are the classic database questions in the interview?
QT console output in GUI applications- Console output in a Qt GUI app?
[FPGA tutorial case 13] design and implementation of CIC filter based on vivado core
string(讲解)
力扣62 不同路径(从矩阵左上到右下的所有路径数量) (动态规划)
JVM 全面深入
可极大提升编程思想与能力的书有哪些?
A very good JVM interview question article (74 questions and answers)
laravel 使用腾讯云 COS5全教程
Talking about reading excel with POI
Redis (II) - redis General Command
rt-thread 中对 hardfault 的处理
360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
ICML 2022 | explore the best architecture and training method of language model
Qtthread, one of many methods of QT multithreading
哈趣投影黑馬之姿,僅用半年强勢突圍千元投影儀市場!
软件测试知识储备:关于「登录安全」的基础知识,你了解多少?
Open the blue screen after VMware installation