- Run nginx and apache containers with
docker-compose up -d
command - run
ab_tests.sh
- apache bench tests with different concurrency
Results:
- On big amount of requests Apache uses more cpu than nginx
- Time to serve requests is a bit bigger for Apache than Nginx
- RPS is almost similar
So, when you need to process a lot of requests nginx seems more efficient