On Tue, Jun 10, 2008 at 1:13 AM, Gary Furnish <[EMAIL PROTECTED]> wrote: > > After Pearu suggested I give the microbenchmark on sympycore a try, I > can't seem to get more then 9000 expands on recent hardware. > I am running: > > In [54]: a,b,c = Rational(1,2), Rational(2,3), Rational(4,5) > In [64]: %timeit (3*(a*x + b*y + c*z)).expand() > 10000 loops, best of 3: 110 µs per loop
For sympy I am getting: In [1]: var("a b c x y z") Out[1]: (a, b, c, x, y, z) In [2]: %timeit (3*(a*x + b*y + c*z)).expand() 10000 loops, best of 3: 128 µs per loop and for sympycore I am getting: In [8]: %timeit (3*(a*x + b*y + c*z)).expand() 10000 loops, best of 3: 199 µs per loop So sympy actually seems faster than sympycore. > > How can I fix this? Pearu probably has some comments. > > Also, how do I disable caching for sympycore? I think sympycore doesn't use caching. For sympy, it's described here: http://wiki.sympy.org/wiki/FAQ#How_do_I_turn_off_caching.3F Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---