coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another patch, for discussion tho


From: Bruce Korb
Subject: Re: Another patch, for discussion tho
Date: Mon, 16 Apr 2012 10:59:50 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0

On 04/16/12 10:58, Bruce Korb wrote:
On 04/16/12 09:54, Bruce Korb wrote:
I suppose the motivation is performance?
If so, have you measured the improvement?

Actually, no, it is not for performance. I found it wearisome to write:

But curiosity got the better of me:

$ ./timer
strpbrk startup time: 0.000 run time: 31.081
macros startup time: 0.000 run time: 19.882

Optimized makes a bigger % difference:

$ gcc -O4 -g -o timer timer.c
$ ./timer
strpbrk    startup time:     0.000 run time:        5.581
macros     startup time:     0.000 run time:        2.439



reply via email to

[Prev in Thread] Current Thread [Next in Thread]