当前位置:网站首页>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
边栏推荐
- 牛客小白月赛52 E.分组求对数和(二分&容斥)
- Software testing knowledge reserve: how much do you know about the basic knowledge of "login security"?
- Overview of FlexRay communication protocol
- 缓存在高并发场景下的常见问题
- Jstack of JVM command: print thread snapshots in JVM
- Rk3399 platform development series explanation (interruption) 13.10, workqueue work queue
- C interview 24 (pointer) define a double array with 20 elements a
- UIC (configuration UI Engineering) public file library adds 7 industry materials
- [FPGA tutorial case 13] design and implementation of CIC filter based on vivado core
- Ideas of high concurrency and high traffic seckill scheme
猜你喜欢

Matlab / envi principal component analysis implementation and result analysis

Rk3399 platform development series explanation (WiFi) 5.53, hostapd (WiFi AP mode) configuration file description

字符串常量与字符串对象分配内存时的区别

一段程序让你明白什么静态内部类,局部内部类,匿名内部类

JVM command - jmap: export memory image file & memory usage

Several key steps of software testing, you need to know

JWT 认证

JMeter function assistant - random value, random string, fixed value random extraction

Audio distortion analysis of DSP and DAC based on adau1452

3531. 哈夫曼树
随机推荐
基本Dos命令
Crudini 配置文件编辑工具
c面试 加密程序:由键盘输入明文,通过加密程序转换成密文并输出到屏幕上。
JMeter's own functions are not enough? Why don't you develop one yourself
Ideas of high concurrency and high traffic seckill scheme
哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
Array proof during st table preprocessing
[Shell]常用shell命令及测试判断语句总结
测试开发基础,教你做一个完整功能的Web平台之环境准备
Bypass open_ basedir
c语言(结构体)定义一个User结构体,含以下字段:
安装mongodb数据库
基于FPGA的VGA协议实现
693. Travel sequencing
C interview 24 (pointer) define a double array with 20 elements a
PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
How to use wechat cloud hosting or cloud functions for cloud development of unapp development applet
谷歌 Chrome 浏览器发布 103.0.5060.114 补丁修复 0-day 漏洞
window下面如何安装swoole
Redisl garbled code and expiration time configuration