This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printing length in benchtests


On 02/06/2014 10:03 PM, Siddhesh Poyarekar wrote:
On Thu, Feb 06, 2014 at 09:47:22PM +0530, Rajalakshmi Srinivasaraghavan wrote:
Hi All

Should we print len instead of pos in the following 4 benchtests to
interpret the output better?
Why would it be better?  When there is a match, it is the match
position that determines the exit from these functions.  The length
comes into the picture when there is no match.

So both would be useful to have in different cases IMO.

Siddhesh

I looked at strrchr,we exit once we hit null even after crossing the pos.
So atleast for such functions, it would be better to change.

-- Thanks
 Raji


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]