[pypy-dev] Is PyPy appropriate for Django?

Davide Setti davide.setti at gmail.com
Thu Aug 25 19:27:24 CEST 2011


On Wed, Aug 24, 2011 at 11:59 PM, Leonardo Santagada
<santagada at gmail.com> wrote:
> there is a ctypes driver for sqllite and mysql (this last one being
> used in quora). There is a postgresql driver also but this one is a
> little harder to get going (it needs to be translated with the pypy
> interpreter) but there are pure python ones and they might be pretty
> fast.

There is https://github.com/mvantellingen/psycopg2-ctypes for
postgres. I'm using it and it seems to work fine.

I did two things with django+pypy: i ran a management command and it
took 30s against the 10s of cpython+psycopg2-ctpyes, maybe it's too
short. And i did a benchmark with ab. With a small number of
connection it works fine (and as fast as cpython), but as the number
grows gunicorn starts to give errors. I need to investigate further.
I also tried djangobench but i found this bug (in pypy ctypes, i think):

https://bugs.pypy.org/issue844

Regards
--

Davide Setti
blog: http://blog.flatlandia.eu
code: http://github.com/vad


More information about the pypy-dev mailing list