This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use HP_TIMING for benchmarks if available
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 23 Apr 2013 11:19:43 +0530
- Subject: Re: [PATCH] Use HP_TIMING for benchmarks if available
- References: <20130415081936 dot GN9444 at spoyarek dot pnq dot redhat dot com> <20130422050122 dot GC1412 at spoyarek dot pnq dot redhat dot com> <20130422145502 dot GA31451 at domone dot kolej dot mff dot cuni dot cz> <CAAHN_R31nOZOhF6wD_qN=BKtPwtUB=xu+PPrXXu5x2KBOoZAiw at mail dot gmail dot com> <20130422184112 dot GA2873 at domone dot kolej dot mff dot cuni dot cz>
On Mon, Apr 22, 2013 at 08:41:12PM +0200, OndÅej BÃlka wrote:
> I thougth instead ask in separate thread if it would be possible. It
> would make hp_timing more usable.
OK, but the correct alternative for hp_timing would be
CLOCK_MONOTONIC_RAW and not CLOCK_PROCESS_CPUTIME_ID. For
benchmarking I would prefer the latter for a lot of cases since it
does not include scheduling costs.
> You are writing here minimum and maximum in seconds.
Ahh ok, thanks. I'll fix that once your patch is reviewed and goes in.
Siddhesh