Question

I am running a benchmark on my development machine (i7 CPU, 4GB RAM, Windows 7 64-bit) to determine which web server has the best performance to deliver static content, taking IIS and Nginx under consideration, as well as a custom console application using a HttpListener (.NET 4.5). I am using Apache Benchmark to see the requests per second (-c 1000 -n 10000) handled by each server

I cannot believe the results, Nginx served 1000 requests/second, IIS served 700 requests/second and the custom console application using HttpListener served 4500 requests/second. Something must have gone wrong, can anyone shed some light on this scenario and explain why I get these odd results?

Was it helpful?

Solution

At first, make sure there is not network envienvironment difference between them.

It depends on your configuration. For Nginx, eg: worker_connections, open_file_cache, sendfile, keepalive ...... All those parameters could influent your "ab -c 1000 ..." test result.

What is more, Nginx is not designed for Windows OS, but C# & HttpListener sure are.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top