Live data from Hacker News

Nginx vs. Apache in AWS

blog.celingest.com

11–20 of 44 posts

Re: Nginx vs. Apache in AWS

#11
post #10
post #6

If you are going to test Apache at least use 2.4 in MPM-event mode so you are testing apples to apples. Using Apache 2.2 in worker mode is like comparing 8 year old tech to modern code. hint: Apache is still about 15-20% slower than nginx even in it's fastest mpm-event mode, but it has many more years of features and modules available - it all depends what your needs are - single site services vs multi-site webhostin…

It's fair insofar as Debian still ships with 2.2 (2.4 in experimental)

I wouldn't call Debian Sta(b)le fair testing. Ubuntu is a slightly better but to be truly fair you should use the latest stable production branch of each program. Or dev if that's what you're testing.

Re: Nginx vs. Apache in AWS

#12
post #10
post #6

If you are going to test Apache at least use 2.4 in MPM-event mode so you are testing apples to apples. Using Apache 2.2 in worker mode is like comparing 8 year old tech to modern code. hint: Apache is still about 15-20% slower than nginx even in it's fastest mpm-event mode, but it has many more years of features and modules available - it all depends what your needs are - single site services vs multi-site webhostin…

It's fair insofar as Debian still ships with 2.2 (2.4 in experimental)

And what version of nginx does Debian ship with? I suspect it classes nginx entirely as experimental!

Re: Nginx vs. Apache in AWS

#13
post #10

Earlier quoted context omitted.

It's fair insofar as Debian still ships with 2.2 (2.4 in experimental)

And what version of nginx does Debian ship with? I suspect it classes nginx entirely as experimental!

1.2.6, which incidentally is what was used in the test.

Re: Nginx vs. Apache in AWS

#15
post #10

Earlier quoted context omitted.

It's fair insofar as Debian still ships with 2.2 (2.4 in experimental)

I wouldn't call Debian Sta(b)le fair testing. Ubuntu is a slightly better but to be truly fair you should use the latest stable production branch of each program. Or dev if that's what you're testing.

The parent argued that the comparison is unfair, but those are the versions you would get from Debian (apt-get install nginx-light apache2)

Re: Nginx vs. Apache in AWS

#16
post #4

Why exactly did they limit nginx to one worker proces?

I came here to write the same thing..

Worker Process 1; - for nginx on 2 cores

Nginx Php ???? - you have not mentioned what PHP config you are running on Nginx

The Benchmarking needs to get better, this thing keeps on happening

Re: Nginx vs. Apache in AWS

#18
post #3

Lighttpd is missing... but good benchmark anyway.

I actually really like the lighttpd config structure, but its not actively maintained and doesn't have the amazing community that nginx has. It is clear that nginx has won the high performance web-server battle..

Re: Nginx vs. Apache in AWS

#20
"Here is a benchmark that shows the performance of a watermelon and a large canteloupe lobbed from a trebuchet using different kinds of wood and rope under different wind conditions. We tied random weights to each melon for no apparent reason."

What the fuck is the point of a performance benchmark if you didn't tune any settings for performance?

Post reply on HN