Jump to content

First Blog Post! (Nginx vs. Apache)


The Little Guy

Recommended Posts

How did you run php? mod_php for apache I would assume, how about with nginx? How about trying both running php-fpm over fcgi and see what the results are for a better comparison?

 

1,000 hits is nothing, use the apachebenchmark tool and truly test with concurrent connections etc and see how each handle. You can also tweak, both nginx and apache, to do different performances etc. So you would need to also get those settings as close as possible to each other.

Nginx I used: c:\php\php-cgi.exe -b 127.0.0.1:9000 -c c:\php

 

Not really comparable, maybe if you got nginx to use fcgi it might be comparable. But that alone flaws your data. There is a reason they call it "fast cgi" vs just "cgi".

Also, you are using TCP for the php process, I do not think mod_php uses TCP, also what other modules for apache are configured? Something like mod_cache can skew the results as well without tuning Nginx to do similar as well as the mpm module.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.