January 10th, 2007, 09:40 AM
Ruby is slow?
Our company has database system, one of it's interface was designed by ruby and java, another is designed by PHP. The function was same. but I found ruby system is much slow than php's in internet speed. they process the totally same thing.
Is that true and why?
January 12th, 2007, 07:29 AM
I guess the major problem is Ruby's interpretter.
But, don't forget that Ruby 'motto' has been Ruby is fast enough for most tasks, and when its not, you can recode the hotspots in C. :-P
ps.You could try Python. It's also object oriented and it's faster (as fast as PHP, i believe).
January 13th, 2007, 05:06 AM
January 20th, 2007, 12:56 AM
It would highly depend on your setup. If your using ruby through cgi then your killing yourself in startup speed. While most of the time php is installed by building itself into the httpd server or creating a socket to a running app, such as fastcgi. Which is by far faster.
There are tools such as fastcgi or even mod_ruby, if your using apache, to make ruby much faster.
Ruby is a fairly fast language, not as fast as must scheme implantations by any means. However it can get must jobs done. If put into the right framework it can run pretty smoothly.
January 29th, 2007, 04:38 PM
Slower is possible, but Ruby is fast enough in the vast majority of cases to run a web site. The key thing is that you can't base it on a development box.
As an example, running Rails via Mongrel has very respectable performance. How much it's going to compare to PHP, Python, or Perl is going to depend on the equality of the servers as well as whether or not all of the systems involved are running ORM's.
In short, just make sure the playing field is even before doing the comparisons.