python disk i/o speed
dig.list at telkel.net
Wed Aug 7 21:56:27 CEST 2002
Hi, Duncan Booth !
On Wed, Aug 07, 2002 at 03:03:05PM +0000, Duncan Booth wrote:
> pruebauno at latinmail.com (nnes) wrote in
> news:d8778a53.0208070621.62248e3d at posting.google.com:
> > gcc: 4 seconds
> > Suns java: 19 seconds
> > Python: 36 seconds
> > I will post the source of the programms in a follup post. The
> > implementation details are not exactly the same. I spent a couple of
> > days on a satisfactory ANSI C version for example and about 20 minutes
> > on the python script. :-)
> 2 days = 15 hours.
> Subtract 20 minutes, give 14 hours, 40 minutes = 52800 seconds
> The C version saves you 32 seconds, so you will be gaining with the C
> version after only 1650 runs of the program.
> If you intend to add up colums of numbers less frequently than about 7Mb
> per day for 4 1/2 years, then stick with the Python program. If you need to
> process more data than this then post the Python program and we may be able
> to make some constructive suggestions.
This is very reasonable math ! :-))
DIG (Dmitri I GOULIAEV)
More information about the Python-list