当前位置:网站首页>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
边栏推荐
- JMeter function assistant - random value, random string, fixed value random extraction
- 为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
- Implementation of VGA protocol based on FPGA
- C interview 24 (pointer) define a double array with 20 elements a
- C语言整理(待更新)
- 雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业
- string(讲解)
- uniapp开发小程序如何使用微信云托管或云函数进行云开发
- Redis(二)—Redis通用命令
- Rk3399 platform development series explanation (interruption) 13.10, workqueue work queue
猜你喜欢

软件测试的几个关键步骤,你需要知道

Implementation of VGA protocol based on FPGA

window下面如何安装swoole

Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】

JMeter's own functions are not enough? Why don't you develop one yourself

2022Android面试必备知识点,一文全面总结

Matlab / envi principal component analysis implementation and result analysis

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

蚂蚁庄园安全头盔 7.8蚂蚁庄园答案

Deep clustering: joint optimization of depth representation learning and clustering
随机推荐
How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
基于FPGA的VGA协议实现
go-microservice-simple(2) go-Probuffer
ETCD数据库源码分析——从raftNode的start函数说起
Redisl garbled code and expiration time configuration
dolphinscheduler3.x本地启动
FlexRay通信协议概述
开发者别错过!飞桨黑客马拉松第三期链桨赛道报名开启
C interview 24 (pointer) define a double array with 20 elements a
哈趣投影黑馬之姿,僅用半年强勢突圍千元投影儀市場!
当我们谈论不可变基础设施时,我们在谈论什么
VMware安装后打开就蓝屏
[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core
基本Dos命令
CloudCompare-点对选取
可极大提升编程思想与能力的书有哪些?
缓存在高并发场景下的常见问题
rt-thread 中对 hardfault 的处理
Overview of FlexRay communication protocol
C语言整理(待更新)