Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 10th, 2007, 09:40 AM
amherst8600 amherst8600 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 69 amherst8600 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 44 m 29 sec
Reputation Power: 7
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

Reply With Quote
  #2  
Old January 12th, 2007, 07:29 AM
v1ct0r v1ct0r is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Location: Rest Aria
Posts: 1 v1ct0r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 36 sec
Reputation Power: 0
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).

Reply With Quote
  #3  
Old January 13th, 2007, 05:06 AM
samser_m's Avatar
samser_m samser_m is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 301 samser_m Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Week 19 h 22 m 27 sec
Reputation Power: 0
according to this tutorial
Quote:
What would you think if I told you that you could develop a web application at least ten times faster with Rails than you could with a typical Java framework? You can--without making any sacrifices in the quality of your application!

Reply With Quote
  #4  
Old January 20th, 2007, 12:56 AM
CyBerHigh CyBerHigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 461 CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 12 h 36 m 28 sec
Reputation Power: 23
Send a message via AIM to CyBerHigh
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.
__________________
My Site:
http://www.coryhardman.com

Reply With Quote
  #5  
Old January 29th, 2007, 04:38 PM
BDKR's Avatar
BDKR BDKR is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Tampa, Florida
Posts: 31 BDKR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 m 29 sec
Reputation Power: 11
Send a message via AIM to BDKR Send a message via Yahoo to BDKR
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Ruby is slow?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap