OT: ptime [WAS: Re: stdio performance in tango, stdlib, and perl]
Sean Kelly
sean at f4.ca
Thu Mar 22 08:36:21 PDT 2007
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.
More information about the Digitalmars-d
mailing list