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: [PATCH] PowerPC: modf optimization


On 27 March 2013 19:23, Adhemerval Zanella <azanella@linux.vnet.ibm.com> wrote:
> Ok, here it an updated version using the benchtest framework. Using it I got:
>
> PATCH - m32: modf: ITERS:200000: TOTAL:0.00169022s, MAX:16.982ns, MIN:7.118ns, 1.18328e+08 iter/s
> MASTER:      modf: ITERS:200000: TOTAL:0.00307463s, MAX:18.642ns, MIN:13.8ns,  6.50484e+07 iter/s
>
> PATCH - m64: modf: ITERS:200000: TOTAL:0.0011649s,  MAX:8.36ns, MIN:5.458ns,   1.71688e+08 iter/s
> MASTER       modf: ITERS:200000: TOTAL:0.00340596s, MAX:21.344ns, MIN:16.85ns, 5.87206e+07 iter/s

Could you increase the iterations to around 5e8?  That'll give the
function a total runtime of a few seconds, which should offset the
syscall lag for architectures where clock_gettime does a syscall.

> --- /dev/null
> +++ b/benchtests/bench-modf.c

This is neat; I hadn't thought about this kind of use case when I
wrote it.  Could you document it in the Makefile?

Thanks,
Siddhesh
-- 
http://siddhesh.in


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