The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Benchmarking Rails versus Grails

1 reply on 1 page. Most recent reply: Mar 23, 2007 1:41 PM by John Wells

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Jared Richardson

Posts: 1031
Nickname: jaredr
Registered: Jun, 2005

Jared Richardson is an author, speaker, and consultant who enjoys working with Ruby and Rails.
Benchmarking Rails versus Grails Posted: Mar 23, 2007 11:48 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Jared Richardson.
Original Post: Benchmarking Rails versus Grails
Feed Title: 6th Sense Analytics
Feed URL: http://www.6thsenseanalytics.com/?feed=rss
Feed Description: The 6th Sense Analytics corporate blog
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jared Richardson
Latest Posts From 6th Sense Analytics

Advertisement

The Grails guys posted a quick and dirty benchmark showing that Grails was a lot faster than Rails. I don't think they did anything intentional, but they missed a key point about Rails.

When your application creates a new instance or thread for every new request, it's easy for a server to get overwhelmed. Rails takes another approach. The Rails developers want you to make a conscious decision about how many resources you want an application to have.

So when you deploy a Rails application on Mongrel, you need to decide how many instances are available. This is completely different from the traditional Tomcat model, which looks something more like "spin up threads until the machine stops responding." You can read more about configuring Mongrel on the Mongrel clustering page.

If I've read the page properly, this benchmark is running against a single Mongrel instance, which is the equivalent of creating a Java singleton servlet and testing against it. Of course it's going to be quite slow.

For a real comparison, I'd try using the Apache load balancer plugin or my personal favorite Pound).

It doesn't sound like the benchmark was intentionally flawed. The single threaded application server is a paradigm shift that many people aren't aware of until they move their Rails application to a production environment. He missed it, and it would be interesting to see how it would perform if he installed a "pack of Mongrels" and ran again.

Jared

Read: Benchmarking Rails versus Grails


John Wells

Posts: 33
Nickname: jbwiv
Registered: Jul, 2004

Re: Benchmarking Rails versus Grails Posted: Mar 23, 2007 1:41 PM
Reply to this message Reply
Jared,

I did just that...put a pack of mongrels up an tested it. This did allow Rails to beat Grails on two tests...Grails beat Rails on the rest. You can read about it here if you'd like:

http://thoughtmining.blogspot.com/2007/03/grails-versus-rails-comparison.html

Flat View: This topic has 1 reply on 1 page
Topic: Rails: ActiveRecord Serialize method Previous Topic   Next Topic Topic: Closures: the final frontier: The search for Sapir-Whorf

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use