ab test installation and result analysis

ab test installation: run the command under linux: yum install httpd-tools

 

ab -c 1000 -n 1000 http://127.0.0.1/index.jsp

-n requests //Number of requests executed in the test session. By default, only one request is executed

-c concurrency //The number of requests generated at one time. Default is one at a time

 

 

Server Software: Apache/2.2.19 ##apache version 
Server Hostname: vm1.jianfeng.com ##Requested machine 
Server Port: 80 ##Request port

Document Path: /a.html 
Document Length: 25 bytes ##page length

Concurrency Level: 100 ##Concurrency 
Time taken for tests: 0.273 seconds ##Total time taken 
Complete requests: 1000 ##Requests 
Failed requests: 0 ##Failed requests 
Write errors: 0   
Total transferred: 275000 bytes ##Total The number of bytes transferred, including http header information, etc. 
HTML transferred: 25000 bytes ##html bytes, the actual page transfer bytes 
Requests per second: 3661.60 [#/sec] (mean) ##How many requests per second, This is a very important parameter value, server throughput 
Time per request: 27.310 [ms] (mean) ##User average request waiting time 
Time per request: 0.273 [ms] (mean, across all concurrent requests) ##Server average Processing time, which is the reciprocal of server throughput 
Transfer rate: 983.34 [Kbytes/sec] received ##Length of data obtained per second

Connection Times (ms) 
              min  mean[+/-sd] median   max 
Connect:        0    1   2.3      0      16 
Processing:     6   25   3.2     25      32 
Waiting:        5   24   3.2     25      32 
Total:          6   25   4.0     25      48

Percentage of the requests served within a certain time (ms) 
  50% 25 ## 50% of requests returned within 25ms 
  66% 26 ## 60% of requests returned within 26ms 
  75% 26 
  80% 26 
  90% 27 
  95% 31 
  98% 38 
  99% 43 
100% 48 (longest request)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326803111&siteId=291194637
Recommended