[root@chuangyuegou ~]# ab -n 10000 -c 49 http://192.168.0.99/index.html
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 192.168.0.99 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software: Apache/2.4.10 //服务器版本
Server Hostname: 192.168.0.99 //地址
Server Port: 80 //端口
Document Path: /index.html //位置
Document Length: 208 bytes //文档大小
Concurrency Level: 49 //并发量
Time taken for tests: 1.438 seconds //测试持续时间
Complete requests: 10000 //总访问量
Failed requests: 0 //失败的请求数
Write errors: 0 //写错误数
Non-2xx responses: 10000 //成功访问量
Total transferred: 3970000 bytes //网络传输量
HTML transferred: 2080000 bytes //html内容传输量
Requests per second: 6952.52 [#/sec] (mean) //吞吐量,每秒事务数
Time per request: 7.048 [ms] (mean) //用户平均请求等待时间
Time per request: 0.144 [ms] (mean, across all concurrent requests) //服务器平均请求等待时间
Transfer rate: 2695.46 [Kbytes/sec] received 平均每秒网络流量
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.6 1 7
Processing: 4 6 0.8 6 13
Waiting: 0 5 0.9 5 12
Total: 4 7 0.9 7 19
Percentage of the requests served within a certain time (ms)
50% 7 // 50%的处理时间在7ms内
66% 7 //66%的处理时间在7ms 内
75% 7 .
80% 7 .
90% 7 .
95% 9 .
98% 9 .
99% 10 //99%的处理时间在10ms 内
100% 19 (longest request)
原创文章,作者:luobocai,如若转载,请注明出处:http://www.178linux.com/49662