[SciPy-user] scipy and blitz

Robert Kern robert.kern@gmail....
Tue Apr 1 13:51:05 CDT 2008


On Tue, Apr 1, 2008 at 1:30 PM, nicky van foreest <vanforeest@gmail.com> wrote:
> Dear all,
>
>  After running laplace.py (a part of the scipy performance tutorial) I
>  get the following result:
>
>   chuck~/tmp/perfpy> python laplace.py
>   Doing 100 iterations on a 500x500 grid
>   numeric took 3.35 seconds
>   blitz took 8.61 seconds
>   inline took 7.84 seconds
>   fastinline took 0.75 seconds
>   fortran took 0.42 seconds
>   pyrex took 0.73 seconds
>
>  whereas the results on  http://www.scipy.org/PerformancePython give this:
>
>   Numeric 29.3
>   Blitz 9.5
>   Inline 4.3
>   Fast Inline 2.3
>   Python/Fortran 2.9
>   Pyrex 2.5
>
>  Does anybody have clue about why the blitz code works slower on my
>  machine than numpy?

The first time the weave.blitz and weave.inline codes are called, they
have to compile, link, and load a C++ Python extension module. Run the
benchmark a second time.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco


More information about the SciPy-user mailing list