当前位置:Gxlcms > PHP教程 > Linode1G1024CentOS7+Apache+PHP负载能力ab测试

Linode1G1024CentOS7+Apache+PHP负载能力ab测试

时间:2021-07-01 10:21:17 帮助过:3人阅读

使用的系统信息:

[root@localhost ~]# uname -aLinux localhost.localdomain 3.15.4-x86_64-linode45 #1 SMP Mon Jul 7 08:42:36 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux[root@localhost ~]# php -vPHP 5.4.16 (cli) (built: Aug  6 2014 13:12:28)Copyright (c) 1997-2013 The PHP GroupZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies[root@localhost ~]# httpd -vServer version: Apache/2.4.6 (CentOS)Server built:   Jul 23 2014 14:48:00[root@localhost ~]#



ab测试 phpinfo() 结果:吞吐量 759!

D:\wamp\bin\apache\apache2.4.9\bin>ab -n 100 -c 10 http://linode.zbphp.com/This is ApacheBench, Version 2.3 <$Revision: 1554214 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking linode.zbphp.com (be patient).....doneServer Software:        Apache/2.4.6Server Hostname:        linode.zbphp.comServer Port:            80Document Path:          /Document Length:        52627 bytesConcurrency Level:      10Time taken for tests:   7.592 secondsComplete requests:      100Failed requests:        14   (Connect: 0, Receive: 0, Length: 14, Exceptions: 0)Total transferred:      5280981 bytesHTML transferred:       5262681 bytesRequests per second:    13.17 [#/sec] (mean)Time per request:       759.206 [ms] (mean)Time per request:       75.921 [ms] (mean, across all concurrent requests)Transfer rate:          679.29 [Kbytes/sec] receivedConnection Times (ms)              min  mean[+/-sd] median   maxConnect:       60   73   4.7     70      80Processing:   208  635 101.4    660     690Waiting:       70  237 120.5    220     640Total:        279  708 101.5    740     770Percentage of the requests served within a certain time (ms)  50%    740  66%    740  75%    740  80%    745  90%    750  95%    760  98%    760  99%    770 100%    770 (longest request)D:\wamp\bin\apache\apache2.4.9\bin>

人气教程排行