可以使用结果分析:
Server Software: BWS/1.1 // 服务器版本 BWS是百度自己开发的服务器
Server Hostername:www.baidu.com
Server Port:80
Document Path/
Document Length:79648 bytes
Concurrency level:10
Time taken for test:0.984 seconds
Complete requests:100
Failed requests77
(Connect:0,Receive:0,Length:77,Exceptions:0)
Write errors:0
Total transferred:8123212bytes
*Requests per second101.65[#/sec](mean)
Time per request:98.379[ms](mean)
*Time per request:9.838[ms] (mean,across all concurrent requests)
Transfer rate:8063.49[Kbytes/sec] received
实际返回的:注意位置 bin 下面才可以的
[root@iZ25yhxt5uvZ bin]# ./ab -n600 -c300 http://www.tcd120.cn/
This is ApacheBench, Version 2.3
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Server Software: Apache/2.4.10
Server Hostname: www.tcd120.cn
Server Port: 80
Document Path: /
Document Length: 0 bytes
Concurrency Level: 300
Time taken for tests: 9.680 seconds
Complete requests: 600
Failed requests: 0
Write errors: 0
Non-2xx responses: 600
Total transferred: 269400 bytes
HTML transferred: 0 bytes
Requests per second: 61.98 [#/sec] (mean)
Time per request: 4840.010 [ms] (mean)
Time per request: 16.133 [ms] (mean, across all concurrent requests)
Transfer rate: 27.18 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 56 59 3.6 58 73
Processing: 92 3592 1501.0 4676 5032
Waiting: 92 3592 1501.0 4676 5032
Total: 148 3651 1501.7 4733 5089
Percentage of the requests served within a certain time (ms)
50% 4733
66% 4781
75% 4795
80% 4807
90% 4827
95% 4851
98% 4890
99% 4921
100% 5089 (longest request)