diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-02-22 10:09:27 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-05-26 12:37:29 +0530 |
commit | 15eaf6ffe3e117684a0e7b070c0a8754480d3fa3 (patch) | |
tree | fb9f01290abc80717a41e623699dfec063c1b0df /benchtests/bench-skeleton.c | |
parent | 75f11331f98ebf3873e887a683add944a1aec0fd (diff) | |
download | glibc-15eaf6ffe3e117684a0e7b070c0a8754480d3fa3.tar glibc-15eaf6ffe3e117684a0e7b070c0a8754480d3fa3.tar.gz glibc-15eaf6ffe3e117684a0e7b070c0a8754480d3fa3.tar.bz2 glibc-15eaf6ffe3e117684a0e7b070c0a8754480d3fa3.zip |
benchtests: Add new directive for benchmark initialization hook
Add a new 'init' directive that specifies the name of the function to
call to do function-specific initialization. This is useful for
benchmarks that need to do a one-time initialization before the
functions are executed.
Diffstat (limited to 'benchtests/bench-skeleton.c')
-rw-r--r-- | benchtests/bench-skeleton.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/benchtests/bench-skeleton.c b/benchtests/bench-skeleton.c index 29d6bda809..68a91dcc7a 100644 --- a/benchtests/bench-skeleton.c +++ b/benchtests/bench-skeleton.c @@ -62,6 +62,9 @@ main (int argc, char **argv) unsigned long iters, res; +#ifdef BENCH_INIT + BENCH_INIT (); +#endif TIMING_INIT (res); iters = 1000 * res; |