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

Bill Baxter dnewsgroup at billbaxter.com
Sun Apr 20 02:38:53 PDT 2008


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?

--bb



More information about the Digitalmars-d mailing list