NGINX+PHP-FPM+SOCKET VS NGINX+PHP-FPM+TCP VS NGINX+APACHE+MOD_PHP
上一篇果然nginx使用socket来与php-fpm通讯是更高效率中,测试了nginx 使用TCP与socket与php-fpm通讯的情况。
上一篇果然nginx使用socket来与php-fpm通讯是更高效率中,测试了nginx 使用TCP与socket与php-fpm通讯的情况。
1000次累加测试 php5-fpm.sock下的测试结果 barbery@xie:~$ ab -c 500 -n 10000 http://localhost/bench/foreach_test.php 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 1000 requests Completed 2000 requests Completed 3000