开发者

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

开发者 https://www.devze.com 2023-02-19 21:56 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question w开发者_运维百科ill likely so
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question w开发者_运维百科ill likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

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.


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.


One thing you should considerate is the C extensions. Different implementations require different extension ways. At present, the CTYPES may be the most common one.

So I recommend you take CPython, in case of possible C extensions.

0

精彩评论

暂无评论...
验证码 换一张
取 消