make faster Richards benchmark

Duncan Lissett dlissett0 at yahoo.com
Thu May 13 12:33:00 EDT 2004


Wilk <wilkSPAM at OUTflibuste.net> wrote in message news:<873c64zpu7.fsf at blakie.riol>...
> dlissett0 at yahoo.com (Duncan Lissett) writes:
> 
> > I'd appreciate any suggestions on how to make faster Python
> > implementations of Richards benchmark. Perhaps there are obvious
> > problems that can be corrected?
> >
> > http://www.lissett.com/ben/bench1.htm
> 
> import psyco
> psyco.full()
> 
> 2 times faster :-)

And Simon: "I just tried the benchmark with Psyco, and cut the run
time for input=10000 from 8.1 seconds to 3.4"

Joseph, Simon, Wilk: thanks for the Psyco suggestion, and special
thanks for going ahead and trying it - we get slightly better than x2.

Given how little I know about Python, my assumption is that there's
scope for x10 improvement by writing better code... a more Pythonic
version for http://www.lissett.com/ben/bench3.htm

Suggestions appreciated.

best wishes, Duncan



More information about the Python-list mailing list