[SciPy-user] More on speed comparisons

Ivo Maljevic ivo.maljevic at gmail.com
Mon Jun 16 11:22:36 EDT 2008


Gaël,
If you look at the numbers you have obtained, you will notice that
your ratio is 1180/147 = 8

After I fixed the sum error, SciPy code became as fast as Octave, therefore:

16/2.2 = 7.3

=> 8 vs. 7.3 not significant difference

Ivo

##########################################################################
>
> And in ipython:
>
>    In [1]: %run test.py
>
>    In [2]: %timeit do_python()
>    [... snip ]
>    10 loops, best of 3: 1.18 s per loop
>
>    In [3]: %timeit do_numpy()
>    10 loops, best of 3: 147 ms per loop
>
> This is significantly different from your timings. The numbers do not
> mean the same thing, but I trust these one more, and would try to use CPU
> time only for comparisons between different approachs.
>
> My 2 cents.
>
> Gaël
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080616/c210e54d/attachment.html>


More information about the SciPy-User mailing list