当前位置: 技术问答>linux和unix
谁知道AB显示的结果含义啊~?帮忙解释下~谢谢
来源: 互联网 发布时间:2015-12-17
本文导语: [root@localhost bin]# ./ab -c 1000 -n 10000 http://127.0.0.1:80/ This is ApacheBench, Version 2.0.41-dev apache-2.0 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://...
[root@localhost bin]# ./ab -c 1000 -n 10000 http://127.0.0.1:80/
This is ApacheBench, Version 2.0.41-dev apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (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
Finished 10000 requests
Server Software: Apache/2.0.52
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /
Document Length: 15 bytes
Concurrency Level: 1000
Time taken for tests: 6.140600 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 2102122 bytes
HTML transferred: 150870 bytes
Requests per second: 1628.51 [#/sec] (mean)
Time per request: 614.060 [ms] (mean)
Time per request: 0.614 [ms] (mean, across all concurrent requests)
Transfer rate: 334.17 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 25 210.3 8 3026
Processing: 13 79 54.4 77 1554
Waiting: 5 73 54.6 70 1549
Total: 42 105 248.1 86 4580
Percentage of the requests served within a certain time (ms)
50% 86
66% 88
75% 92
80% 101
90% 115
95% 131
98% 181
99% 188
100% 4580 (longest request)
This is ApacheBench, Version 2.0.41-dev apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (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
Finished 10000 requests
Server Software: Apache/2.0.52
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /
Document Length: 15 bytes
Concurrency Level: 1000
Time taken for tests: 6.140600 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 2102122 bytes
HTML transferred: 150870 bytes
Requests per second: 1628.51 [#/sec] (mean)
Time per request: 614.060 [ms] (mean)
Time per request: 0.614 [ms] (mean, across all concurrent requests)
Transfer rate: 334.17 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 25 210.3 8 3026
Processing: 13 79 54.4 77 1554
Waiting: 5 73 54.6 70 1549
Total: 42 105 248.1 86 4580
Percentage of the requests served within a certain time (ms)
50% 86
66% 88
75% 92
80% 101
90% 115
95% 131
98% 181
99% 188
100% 4580 (longest request)
|
得看你系统需要的并发数,要是一般的网站几百人同时在线,这个应该就没问题了.
要是你的系统同时有几十万 上百万,那你就把并发和请求次数再调整一下,重新压力测试,看响应时间是多少
要是你的系统同时有几十万 上百万,那你就把并发和请求次数再调整一下,重新压力测试,看响应时间是多少