|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Ruby is slow?
Hi, All
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? Thanks |
|
#2
|
|||
|
|||
|
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). |
|
#3
|
||||
|
||||
|
according to this tutorial
Quote:
|
|
#4
|
|||
|
|||
|
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. |
|
#5
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Ruby is slow? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|