OT: ptime [WAS: Re: stdio performance in tango, stdlib, and perl]

Sean Kelly sean at invisibleduck.org
Mon Apr 21 21:29:58 PDT 2008


Sean Kelly wrote:
> == Quote from Bill Baxter (dnewsgroup at billbaxter.com)'s article
>> Sean Kelly wrote:
>>> Andrei Alexandrescu (See Website For Email) wrote:
>>>> I passed a 31 MB text file (containing a dictionary that I'm using in
>>>> my research) through each of the programs above. The output was set to
>>>> /dev/null. I've ran the same program multiple times before the actual
>>>> test, so everything is cached and the process becomes
>>>> computationally-bound. Here are the results summed for 10 consecutive
>>>> runs (averaged over 5 epochs):
>>>>
>>>> 13.9s        Tango
>>>> 6.6s        Perl
>>>> 5.0s        std.stdio
>>> For what it's worth, I created a Win32 version of the Unix 'time'
>>> command recently.  Not too complicated, but if anyone is interested, I
>>> have it here: http://www.invisibleduck.org/~sean/tmp/ptime.zip  It's a
>>> quick and dirty implementation, but works for how I typically use it.
>> I was looking for something like this just the other day.
>> Link seems to be dead these days.  Is there a new URL for it?
> 
> I switched web hosts and have yet to re-upload all my old content.  I'll see
> about getting this zipfile up in the next few days.

Okay, I've uploaded it here:

http://invisibleduck.org/sean/tmp/ptime.zip


Sean



More information about the Digitalmars-d mailing list