Re: [sympy] PyPy benchmarks

2011-12-19 Thread Maciej Fijalkowski
On Sat, Oct 8, 2011 at 7:48 PM, Mateusz Paprocki matt...@gmail.com wrote: Hi, On 8 October 2011 04:40, Maciej Fijalkowski fij...@gmail.com wrote: Hi I did some benchmarking of sympy under PyPy. I would like some comments on the validity of benchmarks. I've use PyPy nightly from 7th of Oct

[sympy] PyPy benchmarks

2011-10-08 Thread Maciej Fijalkowski
Hi I did some benchmarking of sympy under PyPy. I would like some comments on the validity of benchmarks. I've use PyPy nightly from 7th of Oct, CPython 2.7 release and sympy git trunk. Benchmarks (also http://paste.pocoo.org/show/489351/) Those are picked specifically so time stays around 1-5s

[sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
Hello. Half a year ago, I was asking about sympy benchmarks. So here is some feedback on what I got using the JIT. Running the very simple benchmark, like this: import sympy import time x, y = sympy.symbols('x, y') for i in range(10): t0 = time.time() sympy.factor(x**20 - y**20)

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
Try divisors() from sympy/ntheory/factor_.py. I tried that with Cython (pure Python mode, so that you have the same source code, that works both in Python and in Cython) and I forgot which speedup I got, but at least 10x, maybe up to 25x. Should be in the archives of this list. Ondrej On

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
On Mon, Mar 8, 2010 at 5:37 PM, Ondrej Certik ond...@certik.cz wrote: On Mon, Mar 8, 2010 at 4:32 PM, Maciej Fijalkowski fij...@gmail.com wrote: Try divisors() from sympy/ntheory/factor_.py. I tried that with Cython (pure Python mode, so that you have the same source code, that works both

[sympy] Re: Sympy benchmarks

2009-08-18 Thread Maciej Fijalkowski
Hi. I think SymPy is an excellent benchmark target. The nature of SymPy (or any computer algebra system) is such that any high-level operation will exercise most parts of the system. For example integrate(x**3*exp(x)*sin(x), x) performs ~4 million function calls to some 200 functions all

[sympy] Re: Sympy benchmarks

2009-08-18 Thread Maciej Fijalkowski
On Tue, Aug 18, 2009 at 1:12 AM, Fredrik Johanssonfredrik.johans...@gmail.com wrote: On Tue, Aug 18, 2009 at 8:50 AM, Maciej Fijalkowskifij...@gmail.com wrote: Hi. I think SymPy is an excellent benchmark target. The nature of SymPy (or any computer algebra system) is such that any