]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
Maintain runtime of each benchmark at ~10 seconds
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 30 Apr 2013 08:40:20 +0000 (14:10 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 30 Apr 2013 08:40:20 +0000 (14:10 +0530)
commitd569c6eeb48219993063f956e516704281602f7d
treeee4b52c88456865a025c5943ff6f0bb5b741ff0a
parenta6a242fe7cc0d7fcac1c9741d8be2ca8c2a5c744
Maintain runtime of each benchmark at ~10 seconds

The idea to run benchmarks for a constant number of iterations is
problematic.  While the benchmarks may run for 10 seconds on x86_64,
they could run for about 30 seconds on powerpc and worse, over 3
minutes on arm.  Besides that, adding a new benchmark is cumbersome
since one needs to find out the number of iterations needed for a
sufficient runtime.

A better idea would be to run each benchmark for a specific amount of
time.  This patch does just that.  The run time defaults to 10 seconds
and it is configurable at command line:

  make BENCH_DURATION=5 bench
ChangeLog
benchtests/Makefile
benchtests/bench-modf.c
benchtests/bench-skeleton.c
scripts/bench.pl