Search code examples
pythondjangocomparisonbenchmarking

django: on pypy, psyco, unladen swallow or cpython, which one is the fastest?


Has anyone tried to compare those python implementations?

  • pypy
  • psyco
  • unladen swallow (is it dead?)
  • cpython

I am planning to squeeze something more from my server.

Setup:

  • Django 1.3
  • Python 2.7
  • Psycopg2 1.4
  • apache 2
  • mod_wsgi
  • and... Windows server

I am not a windows fanboy, but it has to be :{ There is some legacy code working on it.


Solution

  • http://reinout.vanrees.org/weblog/2011/06/06/django-and-pypy.html links to some benchmarks that compare pypy and cpython using a small django framework (so I guess it just benchmarks how long it takes to create a view). You may be able to use the same benchmark with other frameworks, though it's far from being an all inclusive speed test.

    I believe unladen swallow was discontinued.