Live data from Hacker News

ErlyWeb vs. Ruby on Rails EC2 Performance Showdown

yarivsblog.com

1–10 of 12 posts

ErlyWeb vs. Ruby on Rails EC2 Performance Showdown

#1
I loved rails until I tried to implement something non-trivial in it and realized it was just absolute crap. I suspect it is this way because it came out of the minds of designers rather than programmers...and DHH's attitude is "F You" so it will never improve... but maybe I'm just spoiled having used WebObjects.

I ended up writing my own web app platform in about 3 months-- custom language, integrated persistence engine and http-server, no-thought-required concurrency... so I'm happy now. I'm just kinda surprised that more people haven't done this.

If you don't have the time to do your own solution, use Erlyweb (which is hampered by being "Rails for erlang") or WebObjects (which is hampered by running on Java).

Anyway, I expect that the outperformance of Erlyweb compared to rails will be more dramatic-- in excess of 10 to 1, when running a more complex application, and even higher when running on a multicore cpu.

ErlyWeb vs. Ruby on Rails EC2 Performance Showdown
yarivsblog.com

Re: ErlyWeb vs. Ruby on Rails EC2 Performance Showdown

#4
post #3

... and? Rails forks. It's slow even for a Ruby framework. You could beat both ErlyWeb and Rails handily in C, if your priorities were that far out of whack. Nobody uses Rails for its speed.

It's just about speed as much as how much abuse your server can take before it stops serving.

Re: ErlyWeb vs. Ruby on Rails EC2 Performance Showdown

#7
The last commenter on the original thread is absolutely right: Rails follows different "concurrency model", i.e. it needs multiple processes to run well, especially on multi-core CPUs. He needs to create a cluster of 4-6 mongrels on 2-core CPU and the margin will shrink.

Re: ErlyWeb vs. Ruby on Rails EC2 Performance Showdown

#8

The author compiled ErlyWeb and YAWS with HiPE ( http://www.it.uu.se/research/group/hipe ). Are there any issues with using HiPE instead of the Erlang/OTP compiler?

I will try running the test after recompiling without HiPE and see what difference it makes.

Re: ErlyWeb vs. Ruby on Rails EC2 Performance Showdown

#9
post #7

The last commenter on the original thread is absolutely right: Rails follows different "concurrency model", i.e. it needs multiple processes to run well, especially on multi-core CPUs. He needs to create a cluster of 4-6 mongrels on 2-core CPU and the margin will shrink.

This is the next thing I'll test.

Re: ErlyWeb vs. Ruby on Rails EC2 Performance Showdown

#10
post #4
post #3

... and? Rails forks. It's slow even for a Ruby framework. You could beat both ErlyWeb and Rails handily in C, if your priorities were that far out of whack. Nobody uses Rails for its speed.

It's just about speed as much as how much abuse your server can take before it stops serving.

Servers is absolutely the LAST thing you should worry about today. They cost next to nothing when you compare their cost to the cost of development.

If you need more performance out of Rails, create another VPS and add the mongrels to a cluster. Problem solved.

Post reply on HN