On Sun, 2007-05-06 at 20:23 -0400, Guy Hulbert wrote:
<snip>
> > I've attached the working version.
> 
> It can probably be optimized a bit but I expect perl does a pretty good
> job.

Removed an extra call to localtime() and you get 30% back.  Attached the
new version to save you typing.

[EMAIL PROTECTED]:~$ ./hjp_test0
HJP Sun, 06 May 2007 20:28:03 -0400
SYS Sun, 06 May 2007 20:28:03 -0400
HJP ELAPSED 2.998601 - 100000 iterations
SYS ELAPSED 1.214617 - 100000 iterations

[EMAIL PROTECTED]:~$ ./hjp_test1
HJP Sun, 06 May 2007 20:28:10 -0400
SYS Sun, 06 May 2007 20:28:10 -0400
HJP ELAPSED 2.277792 - 100000 iterations
SYS ELAPSED 1.218052 - 100000 iterations


-- 
--gh

Attachment: hjp_test1
Description: Perl program

Reply via email to