Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
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
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.
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question