当前位置:网站首页>Common concurrent testing tools and pressure testing methods
Common concurrent testing tools and pressure testing methods
2022-06-26 21:09:00 【Lord Dapeng】
1.Apache Benchmark
stay centos7 Install in :
yum -y install httpd-toolsexample :
ab -c 100 -n 10000 URLParameter description :
Besides , Let's introduce the interface according to the above usage to understand the function of each parameter option in detail .
-n namely requests, Used to specify the total number of stress tests performed .
-c namely concurrency, Used to specify the number of concurrencies .
-t namely timelimit, The maximum time to wait for a response ( Company : second ).
-b namely windowsize,TCP send out / Received buffer size ( Company : byte ).
-p namely postfile, send out POST Files to be uploaded when requested , In addition, you have to set -T Parameters .
-u namely putfile, send out PUT Files to be uploaded when requested , In addition, you have to set -T Parameters .
-T namely content-type, Used for setting up Content-Type Request header information , for example :application/x-www-form-urlencoded, The default value is text/plain.
-v namely verbosity, Specifies the level of redundancy for printing help information .
-w With HTML Print the results in tabular form .
-i Use HEAD Ask to replace GET request .
-x Insert string as table Attributes of the tag .
-y Insert string as tr Attributes of the tag .
-z Insert string as td Attributes of the tag .
-C add to cookie Information , for example :"Apache=1234"( You can repeat this parameter option to add multiple ).
-H Add any request header , for example :"Accept-Encoding: gzip", The request header will be added after the existing multiple request headers ( You can repeat this parameter option to add multiple ).
-A Add a basic network authentication information , The user name and password are separated by colons .
-P Add a basic proxy authentication information , The user name and password are separated by colons .
-X Specify the used and port number , for example :"126.10.10.3:88".
-V Print version number and exit .
-k Use HTTP Of KeepAlive characteristic .
-d Don't show percentages .
-S Don't show estimates and warnings .
-g Output the result information to gnuplot Format file .
-e Output the result information to CSV Format file .
-r Specifies not to exit the program when an error message is received .
-h Display usage information , In fact, that is ab -help.Test result description :
Server Software: nginx/1.10.2 ( Server software name and version information )
Server Hostname: 192.168.1.106( Server hostname )
Server Port: 80 ( Server port )
Document Path: /index1.html. ( For testing URL route )
Document Length: 3721 bytes ( For testing URL The size of the returned document )
Concurrency Level: 1000 ( Concurrency number )
Time taken for tests: 2.327 seconds ( Total time spent on stress testing )
Complete requests: 5000 ( The total number of times )
Failed requests: 688 ( Number of failed requests )
Write errors: 0 ( Number of network connection write errors )
Total transferred: 17402975 bytes ( The total amount of data transferred )
HTML transferred: 16275725 bytes (HTML The total amount of data in the document )
Requests per second: 2148.98 [#/sec] (mean) ( The average number of requests per second ) This is a very important parameter value , Throughput of the server
Time per request: 465.338 [ms] (mean) ( All concurrent users ( Here is 1000) The average time it takes to request once )
Time request: 0.247 [ms] (mean, across all concurrent requests) ( The average time for a single user to request )
Transfer rate: 7304.41 [Kbytes/sec] received Data length obtained per second ( Transmission rate , Company :KB/s)
...
Percentage of the requests served within a certain time (ms)
50% 347 ## 50% Request on 347ms Back inside
66% 401 ## 60% Request on 401ms Back inside
75% 431
80% 516
90% 600
95% 846
98% 1571
99% 1593
100% 1619 (longest request)
( Original excerpt from the above part :CentOS7 ab Pressure test installation and interpretation _u011415782 The column -CSDN Blog _centos install ab)
边栏推荐
- Muke 8. Service fault tolerance Sentinel
- 30. 串联所有单词的子串
- Establish a connection with MySQL
- 龙芯中科科创板上市:市值357亿 成国产CPU第一股
- Garbage collection mechanism of browser
- Leetcode question brushing: String 01 (inverted string)
- 网上开户万一免五到底安不安全?
- SentinelResource注解詳解
- Gamefi active users, transaction volume, financing amount and new projects continue to decline. Can axie and stepn get rid of the death spiral? Where is the chain tour?
- Many gravel 3D material mapping materials can be obtained with one click
猜你喜欢

leetcode刷题:字符串04(颠倒字符串中的单词)

Distributed ID generation system

Idea error: process terminated

会计要素包括哪些内容

回首望月

Many gravel 3D material mapping materials can be obtained with one click
![[Bayesian classification 3] semi naive Bayesian classifier](/img/9c/070638c1a613be648466e4f2bc341e.png)
[Bayesian classification 3] semi naive Bayesian classifier

Chapter 2 construction of self defined corpus

【贝叶斯分类4】贝叶斯网

大家都能看得懂的源码(一)ahooks 整体架构篇
随机推荐
0 basic C language (3)
Leetcode(122)——买卖股票的最佳时机 II
【protobuf 】protobuf 昇級後帶來的一些坑
The source code that everyone can understand (I) the overall architecture of ahooks
Disruptor local thread queue_ Use transprocessor processor and workpool to compare consumption - Notes on inter thread communication 005
GEE:计算image区域内像素最大最小值
Daily basic use of alicloud personal image warehouse
Android mediacodec hard coded H264 file (four), ByteDance Android interview
剑指 Offer II 091. 粉刷房子
Dynamic parameter association using postman
Twenty five of offer - all paths with a certain value in the binary tree
Keep alive cache component in Vue
VB.net类库,获取屏幕内鼠标下的颜色(进阶——3)
Is it safe to open a securities account? Is there any danger
0 basic C language (0)
The postgraduate entrance examination in these areas is crazy! Which area has the largest number of candidates?
Many gravel 3D material mapping materials can be obtained with one click
【最详细】最新最全Redis面试大全(42道)
VB.net类库——4给屏幕截图,裁剪
Distributed ID generation system