当前位置:网站首页>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
边栏推荐
- Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
- 安装VMmare时候提示hyper-v / device defender 侧通道安全性
- 屏幕程序用串口无法调试情况
- C面试24. (指针)定义一个含有20个元素的double型数组a
- Swagger3 configuration
- Redisl garbled code and expiration time configuration
- 牛客小白月赛52 E.分组求对数和(二分&容斥)
- 【GNN】图解GNN: A gentle introduction(含视频)
- Qtthread, one of many methods of QT multithreading
- postgresql 数据库 timescaledb 函数time_bucket_gapfill()报错解决及更换 license
猜你喜欢
FlexRay通信协议概述
高并发大流量秒杀方案思路
2022Android面试必备知识点,一文全面总结
Handling hardfault in RT thread
"Parse" focalloss to solve the problem of data imbalance
POI导出Excel:设置字体、颜色、行高自适应、列宽自适应、锁住单元格、合并单元格...
测试开发基础,教你做一个完整功能的Web平台之环境准备
【GNN】图解GNN: A gentle introduction(含视频)
[opencv] morphological filtering (2): open operation, morphological gradient, top hat, black hat
HKUST & MsrA new research: on image to image conversion, fine tuning is all you need
随机推荐
c语言(结构体)定义一个User结构体,含以下字段:
C language sorting (to be updated)
「解析」FocalLoss 解决数据不平衡问题
JMeter's own functions are not enough? Why don't you develop one yourself
Test the foundation of development, and teach you to prepare for a fully functional web platform environment
如何在Touch Designer 2022版中设置解决Leap Motion不识别的问题?
Rk3399 platform development series explanation (WiFi) 5.53, hostapd (WiFi AP mode) configuration file description
面试中有哪些经典的数据库问题?
Redis(二)—Redis通用命令
基于FPGA的VGA协议实现
进程间通信之共享内存
string(讲解)
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
matlab / ENVI 主成分分析实现及结果分析
Markdown displays pictures side by side
jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
How to solve sqlstate[hy000]: General error: 1364 field 'xxxxx' doesn't have a default value error
Qtthread, one of many methods of QT multithreading
[SOC FPGA] custom IP PWM breathing lamp
雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业