Is Ruby slow compared to php?
Like any good nerd, we’ve been experimenting with a little Ruby and Rails development – it is always good to try new things …
One thing we have noticed is that simple Ruby web apps (running on the same server,) are noticeably slower than PHP.
We installed fastcgi with apache 1.3 (took an hour to do) and are running simple web applications.
I will get into more detail in other post / articles.
September 26th, 2006 at 10:21 am
I think ruby is much slower than php, i have done quite a bit of testing, php seems faster especially with zend server
October 24th, 2006 at 12:35 am
I just wanted to update things:
As it turns out, it looks as though we had not actually installed the fastcgi properly and our Ruby app was running on slow-ass CGI.
So my first post on Ruby’s speed was not fair to Ruby.
Once we get around to fixing it, I will update this post.
Stefan
November 14th, 2006 at 12:37 am
Did you ever get around to testing this? I have done some very small testing in it and feel Ruby is working slower thusfar. At this time I am not sure how it would work on a webserver and with the extra bells and whistles (fastcgi etc.) but I had heard so much raving about RoR that I felt it was worth trying…
Also bear in mind we are talking about a Framework in RoR and a scripting language in PHP so the unfair advantage goes to PHP to start with.
November 14th, 2006 at 1:16 am
No.
Due to the fact that there are some server install issues and that the Ruby framework is not as mature as PHP, we have opted to develop in php for the time being.
Don’t get me wrong, Ruby is a really interesting language and has some nice aspects – as does Rails.
That said, I felt that those extra bells and whistles did not trump php’s maturity and flexibility.
March 14th, 2007 at 3:49 am
Here is a quote from O’Reilly’s Ruby in a Nutshell writen by Yukihiro Matsumoto (the creator of Ruby),
“I don’t have a concrete plan for future versions, even 2.0…”
“…Ruby’s internals are too complex to maintain and can be slower than other languages.”
“The future is unknown, and my imagination is limited. …”
March 15th, 2007 at 12:31 am
Ouch!