Live data from Hacker News

Apache 2.4 Faster Than Nginx?

blog.zhuzhaoyuan.com

1–10 of 44 posts

Re: Apache 2.4 Faster Than Nginx?

#2
I'd like to know where the reports are that Apache 2.4 was faster than Nginx. The test in the post hardly seems exhaustive; most web servers do more than serve up a 9kb file on the loopback address.

I have to imagine, that the actual 'report' was that 'apache 2.4 is faster than nginx in certain situations'. This would certainly seem to back that up: http://mondotech.blogspot.com/2012/02/apache-24-vs-nginx-ben...

Re: Apache 2.4 Faster Than Nginx?

#3
"Faster on localhost" doesn't always translate to faster under real-world conditions, of course. If your actual workload is serving largish files to lots of clients relatively far away, this kind of test setup is essentially meaningless. I'm interested to see how the Event MPM helps Apache behave more like nginx in that kind of situation, might even asymptotically approach nginx's performance when transfer time is the rate-limiting factor instead of the server's CPU, for example.

Re: Apache 2.4 Faster Than Nginx?

#4
Very happy the author wrote this up in a succinct way, posting the configuration files and all. Other comments point out that there can be a lot of other circumstances in which these results are not indicative (network time, large files, etc) but it needs to be said that the author did the tests, and shared the results with the community. Thanks!

Re: Apache 2.4 Faster Than Nginx?

#5
post #2

I'd like to know where the reports are that Apache 2.4 was faster than Nginx. The test in the post hardly seems exhaustive; most web servers do more than serve up a 9kb file on the loopback address. I have to imagine, that the actual 'report' was that 'apache 2.4 is faster than nginx in certain situations'. This would certainly seem to back that up: http://mondotech.blogspot.com/2012/02/apache-24-vs-nginx-ben...

Agreed. It's one thing to say "x is faster than y" wholesale rather than considering the endless possible configuration options for each that could affect performance.

Seems like it'd be a lot more constructive to say, "Hey, it's not true out of the box, but here are settings you can fiddle with that, if they work in your situation, could make Apache a better option than Nginx." Anybody want to write that blog post? :)

Re: Apache 2.4 Faster Than Nginx?

#6
post #2

I'd like to know where the reports are that Apache 2.4 was faster than Nginx. The test in the post hardly seems exhaustive; most web servers do more than serve up a 9kb file on the loopback address. I have to imagine, that the actual 'report' was that 'apache 2.4 is faster than nginx in certain situations'. This would certainly seem to back that up: http://mondotech.blogspot.com/2012/02/apache-24-vs-nginx-ben...

I look forward to the results of your testing!

Re: Apache 2.4 Faster Than Nginx?

#7
post #2

I'd like to know where the reports are that Apache 2.4 was faster than Nginx. The test in the post hardly seems exhaustive; most web servers do more than serve up a 9kb file on the loopback address. I have to imagine, that the actual 'report' was that 'apache 2.4 is faster than nginx in certain situations'. This would certainly seem to back that up: http://mondotech.blogspot.com/2012/02/apache-24-vs-nginx-ben...

"We also show that as far as true performance is based - real-world performance as seen by the end-user- 2.4 is as fast, and even faster than some of the servers who may be "better" known as being "fast", like nginx," Jagielski said.

Jim Jagielski is the ASF President

Source: http://www.serverwatch.com/server-news/apache-2.4-delivers-m...

Re: Apache 2.4 Faster Than Nginx?

#8
post #5
post #2

I'd like to know where the reports are that Apache 2.4 was faster than Nginx. The test in the post hardly seems exhaustive; most web servers do more than serve up a 9kb file on the loopback address. I have to imagine, that the actual 'report' was that 'apache 2.4 is faster than nginx in certain situations'. This would certainly seem to back that up: http://mondotech.blogspot.com/2012/02/apache-24-vs-nginx-ben...

Agreed. It's one thing to say "x is faster than y" wholesale rather than considering the endless possible configuration options for each that could affect performance. Seems like it'd be a lot more constructive to say, "Hey, it's not true out of the box, but here are settings you can fiddle with that, if they work in your situation, could make Apache a better option than Nginx." Anybody want to write that blog post?…

Well… someone should!

I'm frankly really tired of operating on cargo cult programming when it comes to my server packages. They're totally opaque to me, since they're huge pieces of software.

Is MongoDB fast? What about Riak or Couch or whatever? What does "fast" mean?

I want charts, damnit, and comparison tables with feature matrices and stuff that can used toe evaluate and, hell, I want you to put up vagrant images so I can run these tests myself.

Re: Apache 2.4 Faster Than Nginx?

#9
Apache is faster than NGINX. NGINX is faster than Apache. If that confuses you, then you don't understand http daemons. It's all about how you benchmark.

This particular benchmark is 100% pointless and tells you nothing. He was performing the benchmark on one machine. In other words, all was local. You are never going to do that in production. What would be the point? In production, you have this thing called a network connection. It is always the limiting factor.

Somebody do a benchmark with the client and server thousands of miles apart. And tell me how much RAM and CPU is used by the daemons during the test! I am 100% sure both daemons can saturate the pipe. The relevant part is how they do that.

Re: Apache 2.4 Faster Than Nginx?

#10
Considering the web server takes less than 5% of the execution time in my stack, I'm not bothered and 99.99% of you probably shouldn't be either.

It'd be a better performance improvement to rewrite the stack entirely in C than change the web server and that's just illogical.

Post reply on HN