SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    suitability of Ruby for small apps, performance

    Though already few chapters into a Ruby programming book, I have very little experience with real programming and web development.

    I would like to use either Ruby, or Ruby on Rails, to produce a rather simple internet application. What bothers me is suitability and performance, particularly in comparison to PHP. Speaking about a rather small app (say cooking recipes database) and shared webhosting account here.

    Are the Ruby and/or RoR applications significantly more resource hungry and slower than PHP? Or are the differences insignificant.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Ruby's definitely not as optimized for pure speed as PHP is at this point. That said, with a small app and not too many users (< thousands) it won't be a big deal.

  3. #3
    SitePoint Wizard bbolte's Avatar
    Join Date
    Nov 2001
    Location
    The Central Plains
    Posts
    3,304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been curious about that also. Vinnie, I remember reading one of your posts where you talked about doing a couple of personal things with it. Have you done anymore?

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by bbolte
    I've been curious about that also. Vinnie, I remember reading one of your posts where you talked about doing a couple of personal things with it. Have you done anymore?
    Yeah but they really haven't gone anywhere, mostly just utilities that stay on my computer

  5. #5
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ruby is not as suitable, as others have said, for small apps compared to PHP, but you could try using the Camping framework, which is a mere 4 KB and has a small memory footprint.
    Happy switcher to OS X running on a MacBook Pro.

    Zend Certified Engineer

  6. #6
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where I might agree that performance wise, a small Rails app might not perform as well as a PHP app, there are other considerations that out weigh this.

    I use Rails to automate business processes. Often to take an Excel spreadsheet used about the company, and convert it into an intranet web application. I choose Rails for this because it is so quick and easy to build the applications. If I used PHP, the development process would take a lot longer, and I'd have to question whether it was worth the time. I also find that the object driven structure makes it easier to reuse code.

    The performance issues I get tend to be with first load (even with Apache enviromental options set to preload FastCGI Ruby instances). Once connected the applications perform well.

    So if performance is your top concern, only have a small number of applications, and plenty of time to develop them, PHP may be the answer to you. If on the other hand, you wish to roll out a number of small applications (especially to small specialist user groups), then Rails is great. And if you want to be able to react quickly and put online small applications to address pressing/urgent needs, Rails is outstanding.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •