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: [RFC] Porting string performance tests into benchtests


From: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Wed, 3 Apr 2013 15:41:30 +0530

> I also noticed that the string benchmark programs use the hp-timing
> macros, that are essentially raw instructions that get the timestamp
> from the cpu.  While this is very low overhead compared to the syscall
> approach of clock_gettime, it may not necessarily be an accurate
> picture of performance compared to CLOCK_PROCESS_CPUTIME_ID since the
> former simply a monotonically increasing clock while the latter is an
> account of the cpu time consumed by the process.  I'd like to hear
> thoughts in favour/against either of these.  As of now I am inclined
> towards continuing use of clock_gettime throughout (and hence also for
> the string benchmarks once I port them over) due to the advantage I
> mentioned above.

I strongly perfer the raw cpu cycle counter read.


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