Apache vs Nginx: Practical Considerations (2015)
digitalocean.com
digitalocean.com
I can run this experiment on VMs, but wanted to ask here in case anyone already did.
* httpd 2.45.5, default config (prefork), peaked at 24 processes and ~8MB RSS each (192MB) => 88k req/sec
* nginx 1.10.3, default config, peaked at 8 processed and ~4MB RSS each (32MB) => 199k req/sec
* httpd 2.45.5, stripped down mpm_event, peaked at 5 processed 8MB each (40MB) ==> 89k req/sec
I suspect the numbers get very similar then.
Usually, of course, there are tradeoffs. In those cases, Apache w/ Event MPM is just as scalable, efficient and concurrent as nginx. Just make sure you are running Apache httpd 2.4.x on a modern OS, to make use of the non-blocking and async I/O and event handling of Apache httpd.
My guess would be that apache is a tad faster (if you choose the proper mpm) and nginx uses a bit less memory (if you tell it to spaw only one worker), but that's just a hunch and is probably barely noticeable with 4/5 users at the same time.