Same test with nginx (4 workers). It's actually about 3ms/request slower than with the Apache set up.
On the other hand, nginx uses about 200-300MB fewer in RAM. During the stress test, it also opens much fewer files. I think I will use nginx for a while to see if it is as stable as Apache. ==== Server Software: nginx/0.8.54 Server Port: 80 Document Path: /hello/default/index Document Length: 87 bytes Concurrency Level: 100 Time taken for tests: 7.017 seconds Complete requests: 1087 Failed requests: 0 Write errors: 0 Total transferred: 488063 bytes HTML transferred: 94569 bytes Requests per second: 154.90 [#/sec] (mean) Time per request: 645.569 [ms] (mean) Time per request: 6.456 [ms] (mean, across all concurrent requests) Transfer rate: 67.92 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 46 249 248.1 143 2269 Processing: 72 344 416.8 187 2269 Waiting: 72 343 417.0 186 2268 Total: 153 593 510.8 325 2589 Percentage of the requests served within a certain time (ms) 50% 325 66% 653 75% 721 80% 815 90% 1138 95% 2018 98% 2270 99% 2385 100% 2589 (longest request)