This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Porting string performance tests into benchtests
- From: Roland McGrath <roland at hack dot frob dot com>
- To: David Miller <davem at davemloft dot net>
- Cc: siddhesh at redhat dot com, libc-alpha at sourceware dot org
- Date: Thu, 11 Apr 2013 13:53:35 -0700 (PDT)
- Subject: Re: [RFC] Porting string performance tests into benchtests
- References: <20130403101130 dot GE20842 at spoyarek dot pnq dot redhat dot com> <20130403 dot 123522 dot 1616212976811705615 dot davem at davemloft dot net> <20130404033719 dot GA14860 at spoyarek dot pnq dot redhat dot com> <20130403 dot 234042 dot 1776194180184022553 dot davem at davemloft dot net>
> And on sparc chips I don't have the issues that can make the cpu cycle
> counter inaccurate or less usable as a timing mechanism.
On every machine it's a global counter and so it's subject to false
accounting due to process scheduling. That's what CLOCK_THREAD_CPUTIME_ID
avoids.