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] |
Add a benchmark for isinf/isnan/isnormal/isfinite/fpclassify. This new version adds explicit tests for the GCC built-ins and uses json format as suggested and no longer includes any string headers. The test uses 2 arrays with 1024 doubles, one with 99% finite FP numbers (10% zeroes, 10% negative) and 1% inf/NaN, the other with 50% inf, and 50% Nan. Results shows that using the GCC built-ins in math.h gives huge speedups due to avoiding explict calls, PLT indirection to execute a function with 3-4 instructions - around 7x on AArch64 and 2.8x on x64. The GCC builtins have better performance than the existing math_private inlines for __isnan, __finite and __isinf_ns, so these should be removed. ChangeLog: 2015-07-16 Wilco Dijkstra <wdijkstr@arm.com> * benchtests/Makefile: Add bench-math-inlines, link with libm. * benchtests/bench-math-inlines.c: New benchmark.
Attachment:
bench-math-inlines.out
Description: Binary data
Attachment:
0001-Add-bench-math-inlines.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |