Simple ab pressure measurement practice
Others
2020-03-26 17:32:25
views: null
ab pressure measurement
Installation Environment
- ab -v found I did not install
- yum -y install httpd-tools (yes -y operating parameters could be found after the installation package is omitted)
- Wait a minute installation was successful again ab -v successful installation good!
start testing
- Never failing to help ab -help
- We know by two common parameters help -n (total number of transmission request) -C (number of users, number of concurrent)
- Just find a word interface test ab -c 10 -n 100 https://v1.hitokoto.cn/?encode=json Enter car
- Result analysis
- Echo command as follows:
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking v1.hitokoto.cn (be patient).....done
Server Software:
Server Hostname: v1.hitokoto.cn
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
Document Path: /?encode=json
Document Length: 313 bytes
Concurrency Level: 10
Time taken for tests: 1.356 seconds
Complete requests: 100
Failed requests: 96
(Connect: 0, Receive: 0, Length: 96, Exceptions: 0)
Write errors: 0
Total transferred: 86855 bytes
HTML transferred: 31469 bytes
Requests per second: 73.74 [
Time per request: 135.611 [ms] (mean)
Time per request: 13.561 [ms] (mean, across all concurrent requests)
Transfer rate: 62.55 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 46 53 3.9 52 65
Processing: 52 64 14.0 61 120
Waiting: 52 64 14.0 60 120
Total: 99 117 15.8 113 178
Percentage of the requests served within a certain time (ms)
50% 113
66% 117
75% 120
80% 122
90% 125
95% 158
98% 174
99% 178
100% 178 (longest request)
Released four original articles
·
won praise 0
·
Views 67
Origin blog.csdn.net/qq_32450143/article/details/105065016