当前位置:网站首页>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
边栏推荐
- UIC(组态UI工程)公版文件库新增7款行业素材
- 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
- 学习笔记|数据小白使用DataEase制作数据大屏
- Subghz, lorawan, Nb IOT, Internet of things
- 生活中的开销,怎么记账合适
- Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
- Overview of FlexRay communication protocol
- How to keep accounts of expenses in life
- dolphinscheduler3.x本地启动
- win系统下安装redis以及windows扩展方法
猜你喜欢

Redis(二)—Redis通用命令

缓存在高并发场景下的常见问题
![[FPGA] EEPROM based on I2C](/img/28/f4f2efda4b5feb973c9cf07d9d908f.jpg)
[FPGA] EEPROM based on I2C

tkinter窗口选择pcd文件并显示点云(open3d)

Several key steps of software testing, you need to know

693. Travel sequencing

ETCD数据库源码分析——从raftNode的start函数说起

进程间通信之共享内存

力扣62 不同路径(从矩阵左上到右下的所有路径数量) (动态规划)

Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
随机推荐
rt-thread 中对 hardfault 的处理
[shell] summary of common shell commands and test judgment statements
Swagger3 configuration
Handling hardfault in RT thread
哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
Array proof during st table preprocessing
Crudini profile editing tool
Rk3399 platform development series explanation (WiFi) 5.53, hostapd (WiFi AP mode) configuration file description
Three updates to build applications for different types of devices | 2022 i/o key review
软件测试知识储备:关于「登录安全」的基础知识,你了解多少?
go-microservice-simple(2) go-Probuffer
Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
软件测试的几个关键步骤,你需要知道
A program lets you understand what static inner classes, local inner classes, and anonymous inner classes are
K8s running Oracle
Cloud acceleration helps you effectively solve attack problems!
C语言面试 写一个函数查找两个字符串中的第一个公共字符串
Ant manor safety helmet 7.8 ant manor answer
Test the foundation of development, and teach you to prepare for a fully functional web platform environment
UIC(组态UI工程)公版文件库新增7款行业素材