This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Benchmark for sem_timedwait v1.1
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org
- Date: Wed, 26 Feb 2014 14:58:04 +0100
- Subject: Re: Benchmark for sem_timedwait v1.1
- Authentication-results: sourceware.org; auth=none
- References: <20140211172720 dot 52ABB7445F at topped-with-meat dot com> <20140211184530 dot GB32451 at domone dot podge> <20140211204751 dot GA17236 at domone dot podge> <20140213102200 dot GA8107 at spoyarek dot pnq dot redhat dot com> <20140216152649 dot GA10444 at domone dot podge> <20140217050742 dot GC17663 at spoyarek dot pnq dot redhat dot com> <20140217101900 dot GA16967 at domone dot podge> <20140217103551 dot GF27461 at spoyarek dot pnq dot redhat dot com> <20140221192656 dot GB6229 at domone dot podge> <20140222050816 dot GA9254 at spoyarek dot pnq dot redhat dot com>
On Sat, Feb 22, 2014 at 10:38:16AM +0530, Siddhesh Poyarekar wrote:
> On Fri, Feb 21, 2014 at 08:26:56PM +0100, OndÅej BÃlka wrote:
> > There are no sensible inputs.
>
> There are, one for each case, i.e. contended and uncontended. I'll
> write one up if you can't think of it.
>
Its artificial, you could add always add additional parameter, or for
general benchmark take a string as argument, then call system on it and
require that string be something like "echo 'code' > test.c; gcc test.c; ./a.out"
> > There may be different usage patterns to measure which may involve
> > spawning threads which is out of bench-skeleton scope.
>
> This particular benchmark you posted does not spawn threads; it only
> calls a set of functions. I agree that in most cases (not necessarily
> all though) that involve spawning threads and measuring events across
> threads, bench-skeleton would be a bad fit.
>
As that would eventually happens and even now there is notrivial code
for setup there is no point in trying to fix a
round cube to square holes.