[SciPy-User] Speeding up Python Again

Rajeev Singh rajs2010@gmail....
Wed Aug 10 08:18:28 CDT 2011


Hi,

I was trying out the codes discussed at
http://technicaldiscovery.blogspot.com/2011/07/speeding-up-python-again.html
Here is a summary of my results -

            Computer: Desktop    imsc9    aravali   annapurna
               NumPy: 7.651419  4.219105  5.576453  4.858640
              Cython: 4.259419  3.477259  3.204909  2.357819
               Weave: 4.302778     *      3.298551  2.400000
      Looped Fortran: 4.199148  3.414484  3.202963  2.315644
  Vectorized Fortran: 3.118410  2.131966  1.512303  1.460251
pure fortran update1: 1.205727  1.964857  2.034688  1.336086
pure fortran update2: 0.600848  0.604649  0.573593  0.721339

imsc9, aravali and annapurna are HPC machines at my institute
* for some reason Weave didn't compile on imsc9

Indeed there is about a factor of 7 to 12 difference between pure fortran
with update2 (vectorized) and the numpy version.

I should mention that I changed N to 150 in laplace_for.f90

Rajeev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20110810/e00e13c8/attachment.html 


More information about the SciPy-User mailing list