[PATCH] benchtests: Add sinf traces
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Thu Apr 2 17:20:23 GMT 2026
On 02/04/26 14:10, Paul Zimmermann wrote:
> Hi Wilco,
>
> I looked at the "small" trace. On 1000 inputs, there are lots of duplicates:
> 232 which are 0, 54 which are 0x1.848f56p-32, 42 which are 0x1.84729p-32,
> and more than 1/3 which are in [-1e-9,1e9], for which we could simply
> return x. In my opinion, this is not a good trace, since it would be quite
> easy to write some code that is very efficient on average for this trace.
>
> I will have a look at the other traces next week, unless someone else beats me.
>
> Best regards,
> Paul
It is on my backlog, my plan is to use the trace of 3 speccpu2007 benchmarks
(507.cactuBSSN_r, 526.blender_r, and 544.nab_r) to try create a better one.
They benchmarks calls the double version, but since the range is within
-2pi..2pi I think we can extrapolate to float.
More information about the Libc-alpha
mailing list