]> git.ipfire.org Git - thirdparty/glibc.git/commit
Add math benchmark latency test
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 17 Aug 2017 15:27:20 +0000 (16:27 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 17 Aug 2017 15:27:20 +0000 (16:27 +0100)
commitd4505b895f2aa577a6b974ab4bd0a1fd0db60ceb
tree5ae35fc88eda5f2ad45b63f4617f4a87d470d885
parent34d6a3cbf2be45aa039a7eb9f0084a4b710437b8
Add math benchmark latency test

This patch further improves math function benchmarking by adding a latency
test in addition to throughput.  This enables more accurate comparisons of the
math functions. The latency test works by creating a dependency on the previous
iteration: func_res = F (func_res * zero + input[i]). The multiply by zero
avoids changing the input.

It reports reciprocal throughput and latency in nanoseconds (depending on the
timing header used) and max/min throughput in iterations per second:

   "workload-spec2006.wrf": {
    "reciprocal-throughput": 100,
    "latency": 200,
    "max-throughput": 1.0e+07,
    "min-throughput": 5.0e+06
   }

* benchtests/bench-skeleton.c (main): Add support for
latency benchmarking.
* benchtests/scripts/bench.py: Add support for latency benchmarking.
ChangeLog
benchtests/bench-skeleton.c
benchtests/scripts/bench.py