D:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 1000 -c 10 http:
//localhost:8080/zzt/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: Apache/2.2.25
Server Hostname: localhost
Server Port: 8080
Document Path: /zzt/
Document Length: 953 bytes
Concurrency Level: 10
Time taken for tests: 1.094 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 1214000 bytes
HTML transferred: 953000 bytes
Requests per second: 914.29 [#/sec] (mean) --> 吞吐率 (1000/1.094)
Time per request: 10.938 [ms] (mean) --》用户平均请求等待时间 (1.094/(1000/10))
Time per request: 1.094 [ms] (mean, across all concurrent requests) --》服务器平均请求处理时间 (1.094/1000)
Transfer rate: 1083.93 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.3 0 16
Processing: 0 10 8.4 16 47
Waiting: 0 10 8.5 16 47
Total: 0 10 8.4 16 47
Percentage of the requests served within a certain time (ms)
50% 16
66% 16
75% 16
80% 16
90% 16
95% 16
98% 31
99% 31
100% 47 (longest request)
***********************************************************************
理解:
1. 吞吐率随并发用户数变化曲线图
2. 服务器平均请求处理时间随并发用户数变化曲线图
3. 用户平均请求等待时间随并发用户数变化曲线图