On Tue, Jun 10, 2008 at 1:30 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
> 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.With caching disabled: In [6]: %timeit (3*(a*x + b*y + c*z)).expand() 100 loops, best of 3: 2.68 ms per loop Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
