P
P
progenth2013-08-01 07:35:37
Django
progenth, 2013-08-01 07:35:37

Who is less memory demanding Django or Rails?

Assume 1 small site with average traffic.

There is no way to find out in practice.
Not a chillivar for.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
cthtuf, 2013-08-03
@progenth

I currently have 8 django projects on my VPS (the largest is treeio) and gitlab, which is on rails. RAM usage:
uwsgi - 81Mb
ruby1.9.1 - 264Mb

K
kenny_opennix, 2013-08-01
@kenny_opennix

The question is not specific. Let's say django with flat pages lives on a weak vpsky. Here is the approach to the architecture of the site.
Front nginx, caches, OS optimization. In principle, the standard approach.
I will make a reservation right away, my site lives on sqlite. The question is not correct, 1 small site will be equally good on Django and on rails, and equally bad if it is crookedly written.

P
pman, 2013-08-01
@pman

The default rail app with one model, haml templating engine and mysql database created through generators loses to the default django application with one model, standard templating engine on my server, both applications run under unicorn and gunicorn respectively, go through nginx.
What is the reason? Probably, as noted above, in caches, in the optimization of a particular application.
But, as practice has shown, the convenience of developing with a familiar tool compensates for the initial difference in performance - since with proper knowledge, you can make any application work quickly.

J
jj_killer, 2013-08-01
@jj_killer

Depends on many factors. The same Rails, depending on which environment is deployed, JRuby clearly consumes much more than MRI. Moreover, consumption is influenced by a number of very non-obvious factors, such as the template engine used, the number of models, their attributes, validators, etc.
Saving memory is not worth it to use a less familiar and convenient tool.

A
andyN, 2013-08-05
@andyN

Rails is historically much more power hungry. loads a bunch of libraries (although the situation seems to be gradually changing for the better lately). Django eats less.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question