Python speed

Laura Creighton lac at openend.se
Fri Aug 7 13:17:37 EDT 2015


In a message of Fri, 07 Aug 2015 09:57:26 -0700, beliavsky--- via Python-list w
rites:
>On Friday, August 7, 2015 at 10:08:37 AM UTC-4, roge... at gmail.com wrote:
>> Can anyone compare PyNum calculation speed to Fortran?
>> 
>> This is for a number crunching program working with large files.
>> 
>> Roger

And for speed you may be better off with PyPy than with NumPy
http://speed.pypy.org/timeline/

but, as is always the case when measuring the speed of things,
'it all depends on what you are doing'.  Do you need to link to
existing Fortran or C libraries?  If the answer is no, and you
really only are doing crunching, and your crunching is done
in loops which run for a significant amount of time -- then PyPy
is generally faster than Fortran.

If you are spending most of your time in matplotlib graphing
your results, you will  be unhappy with PyPy performance.

pypy-dev at python.org is a better place to discuss performance of
PyPy, though while http://mail.scipy.org/mailman/listinfo/numpy-discussion
is a better place to discuss numpy.

scipy.org has been down all day, alas.  But the Americans should be
awake now and dealing with it.

Laura



More information about the Python-list mailing list