博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Apache Bench
阅读量:6756 次
发布时间:2019-06-26

本文共 1922 字,大约阅读时间需要 6 分钟。

hot3.png

下载地址

解压

231136_ghf3_2330610.png

查看版本

D:\Developer\httpd-2.4.33-win64-VC15\Apache24\binλ ab -VThis is ApacheBench, Version 2.3 <$Revision: 1826891 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/

使用

D:\Developer\httpd-2.4.33-win64-VC15\Apache24\binλ ab -n 1000 -c 50 http://localhost:8080/testThis is ApacheBench, Version 2.3 <$Revision: 1826891 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking localhost (be patient)Completed 100 requestsCompleted 200 requestsCompleted 300 requestsCompleted 400 requestsCompleted 500 requestsCompleted 600 requestsCompleted 700 requestsCompleted 800 requestsCompleted 900 requestsCompleted 1000 requestsFinished 1000 requestsServer Software:Server Hostname:        localhostServer Port:            8080Document Path:          /testDocument Length:        4 bytesConcurrency Level:      50Time taken for tests:   0.322 secondsComplete requests:      1000Failed requests:        0Total transferred:      136000 bytesHTML transferred:       4000 bytesRequests per second:    3105.42 [#/sec] (mean)Time per request:       16.101 [ms] (mean)Time per request:       0.322 [ms] (mean, across all concurrent requests)Transfer rate:          412.44 [Kbytes/sec] receivedConnection Times (ms)              min  mean[+/-sd] median   maxConnect:        0    0   0.4      0       1Processing:     1   15  12.9     13     102Waiting:        1   12  12.3      9      98Total:          1   16  12.9     13     103Percentage of the requests served within a certain time (ms)  50%     13  66%     13  75%     14  80%     14  90%     16  95%     47  98%     73  99%     80 100%    103 (longest request)

命令解释

ab -n 1000 -c 50 http://localhost:8080/test

-n 1000:本次测试总数为1000

-c 50:本次请求并发数50

 

转载于:https://my.oschina.net/kimisme/blog/1807089

你可能感兴趣的文章
LINQ to SQL:创建你的第一个程序
查看>>
K 班1-7,alpha,beta 作业成绩汇总
查看>>
select 的问题
查看>>
Fiddler如何添加ServerIP显示
查看>>
Android瀑布流优化,解决Recyclerview展示大批量图片时Item自动切换、闪烁、空白等问题...
查看>>
《c程序设计语言》读书笔记-5.4-指针实现strend
查看>>
Android 系统默认音量和最大音量
查看>>
MPlayer-ww 增加边看边剪切功能
查看>>
vim利器:vundle 管理器和NERDTree插件
查看>>
系统虚拟机
查看>>
java集合之ArrayList(1)
查看>>
getMemory的经典例子
查看>>
android分析之mutex
查看>>
Tyvj P3119 核电站问题 动态规划
查看>>
【操作系统】总结三(内存管理)
查看>>
关于byte[]和字符串的转换
查看>>
Swashbuckle.AspNetCore(v2.5.0)使用小记
查看>>
VirtulBox添加自定义分辨率
查看>>
Android Training Caching Bitmaps 翻译
查看>>
SpringMVC (五)视图解析器
查看>>