Test Tools Http_load the same dynamic page test, the same hardware resources, nginx+php than apache+php performance, the same concurrency, the same number of requests for the premise
, and if the requested pressure is greater than the affordability of the hardware resource, nginx+php returns a 502 status page in some requests, which means that the site is hung up (as the user sees
come), but Apache will not, just open the site for a long time (also in the user)
nginx+php test Result diagram:
apache+php test Result diagram:
Add Nginx's cache to nginx+php
More than 4 times times more performance than apache+php, twice times better performance
FETCHES/SEC number of requests per second for the server
Msecs/connect time to complete each request
Summary: Hardware resources to meet the use of apache+php because it is super stable, of course, nginx+php is also good, insufficient hardware resources, but also to solve the current site access pressure,
Nginx+php is a good choice.
Comparison of nginx+php and apache+php performance