- Vagrant
- NFS
- Vagrant reload plugin
vagrant plugin install vagrant-reload
The NGINX and Apache configuration are matched as much as possible, so to have a balanced comparison.
One penalty on Apache is the CentOS version is not able to use Unix Sockets.
- default configuration
max_children = 1000
- using module
mpm_event
with params:StartServers 1
MaxRequestWorkers 1280
- using FastCGI with TCP port (due to version not supporting using socket, performance penalty)
- disable others not required modules (
cgi
,lua
)
- Almost out-of-the-box configuration
- FastCGI with Unix Socket
- Worker connections rose up to 5120
vagrant up
vagrant ssh
cd apache-nginx-benchmark\tests
./nginx.sh; ./apache.sh
./generate_report.r
The VM it might crash with Apache and it will not be able to finish the tests, still need to fix a minor configuration for load testing.
The reports are missing some extra information that might be useful like memory consumption, CPU clocks, cores, etc...
It helps to identify better the results. Even the OS is important, because Apache Web Server in CentOS was slightly penalized for UNIX socket not available. here the report: