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 15:29:04 -0700 (PDT)
- Subject: Re: [RFC] Porting string performance tests into benchtests
- References: <20130404033719 dot GA14860 at spoyarek dot pnq dot redhat dot com> <20130403 dot 234042 dot 1776194180184022553 dot davem at davemloft dot net> <20130411205335 dot 32E3D2C091 at topped-with-meat dot com> <20130411 dot 174115 dot 1039950146327400402 dot davem at davemloft dot net>
> If you use CLOCK_THREAD_CPUTIME_ID, the cost of the measurement
> exceeds the cost of the thing that you're measuring.
It's only appropriate for an aggregate measurement of a large number of
iterations. That doesn't make it useless.