Re: [pypy-dev] djangobench performance

2011-09-01 Thread William ML Leslie
On 1 September 2011 15:29, Fenn Bailey fenn.bai...@gmail.com wrote:
 The results were a little surprising (and not in a good way):
 http://pastie.org/2463906
...
 Any ideas as to why the performance drop-off would be so significant?

N = 200 means most of the benchmarks probably won't even JIT, so that
might be a start.  The threshold in the released pypy is N = 1000.

But even without JIT, 20+ fold slowdowns are very interesting:
10n_render, query_all and query_raw.

I wonder if anyone has benchmarked sqlite under pypy - that would have
the most dramatic effect here.

-- 
William Leslie
___
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev


Re: [pypy-dev] djangobench performance

2011-09-01 Thread Antonio Cuni

On 01/09/11 09:23, William ML Leslie wrote:

I wonder if anyone has benchmarked sqlite under pypy - that would have
the most dramatic effect here.


I'm doing it right now. It seems that for some reasons the JIT does not remove 
the ctypes overhead of sqlite calls, thus they are much slower than they 
should be.


ciao,
Anto
___
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev


[pypy-dev] djangobench performance

2011-08-31 Thread Fenn Bailey
Hi all,

As an experiment, I thought I'd test JKM's djangobench (
https://github.com/jacobian/djangobench) under pypy as a way of determining
a (hopefully) more useful benchmark than the template-only django
benchmark that's standard on speed.pypy.org and also to get an idea as to
whether switching to pypy for production django apps could (currently) be a
good idea.

djangobench is designed to fairly comprehensively compare the performance of
different aspects of differing versions of django in an effort to detect
performance degradation/regression/etc.

It's based on perf.py from the unladen swallow project, so it was fairly
easy to crudely hack up to instead compare a single django version running
under cpython 2.6 vs pypy 1.6.

---
$ python -V
Python 2.6.5
$ pypy -V
Python 2.7.1 (d8ac7d23d3ec, Aug 17 2011, 11:51:19)
[PyPy 1.6.0 with GCC 4.4.3]
---

The results were a little surprising (and not in a good way):
http://pastie.org/2463906

Based on the highly degraded performance (2 orders of magnitude in some
cases) I'm guessing there's some sort of issue in the way I'm benchmarking
things.

Code can be found here: https://github.com/fennb/djangobench

Environment is ubuntu 10.04 64bit running in a VM on a macbook pro. cpython
was the current ubuntu binary package, pypy was 1.6 precompiled binary from
pypy.org. It's quite possible memory size issues may have impacted some of
the benchmarks (but not all).

Any ideas as to why the performance drop-off would be so significant?

Cheers,

  Fenn.
___
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev