Rails Vs. Merb...Footprint?

April 21st, 2008

So, I realize if you are reading this you actually care about Rails and Merb. Therefore I hope you are not absolutely perturbed at the lack of quality content here. :)

Out of strange curiosity I decided to see which framework was truly lighter in “default” form. I simply ran each’s command to create a blank projects then looked at the “size” of the created directory.


$ rails test

The resulting project weighed in at 400KB.


$ merb-gen app test

Merb’s project weighs in at 104KB.

Amazing? No, not really. But, now I’m wondering what the size of a Grails project is…

3 Responses Follows

  1. James Lorenzen says

    Not shame in my game. It’s going to be much smaller than a JSF or seam project.

    grails create-app test

    1.1MB

    most of that wrapped up in javascript (prototype) and images (860kb).

  2. me says

    Thx James.

    Javascript is really the only delta between Rails and Merb too. So, drop the images and there really is no footprint difference at the project scope.

    I’d hate to start digging in to dependencies.

  3. James Lorenzen says

    Yeah, I failed to mention what a grails app looks like after adding a couple of domains, controllers, and views. Going back to one of my simple grails app I play around with, after running grails war, the war is around 17MB. Ouch! And this is with no extra plugins installed.

    This is with grails 1.0-rc3; so I am not even using the latest; including an improvement I submitted recently to remove test dependencies from the WEB-INF/lib directory.

    Most of the deps are commons-*, hibernate, hsqldb, spring, and groovy. This is one reason I submitted an improvement against Grails is to have an EAR ability for multiple grails app.


Your Response