about summary refs log tree commit diff
path: root/benchtests/README
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-02-22 10:09:27 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-05-26 12:37:29 +0530
commit15eaf6ffe3e117684a0e7b070c0a8754480d3fa3 (patch)
treefb9f01290abc80717a41e623699dfec063c1b0df /benchtests/README
parent75f11331f98ebf3873e887a683add944a1aec0fd (diff)
downloadglibc-15eaf6ffe3e117684a0e7b070c0a8754480d3fa3.tar.gz
glibc-15eaf6ffe3e117684a0e7b070c0a8754480d3fa3.tar.xz
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/README')
-rw-r--r--benchtests/README1
1 files changed, 1 insertions, 0 deletions
diff --git a/benchtests/README b/benchtests/README
index 52a3cc2062..999d268cf8 100644
--- a/benchtests/README
+++ b/benchtests/README
@@ -62,6 +62,7 @@ one to add `foo' to the bench tests:
     and functions (specifically, this includes using "#include "source").
     See pthread_once-inputs and pthreads_once-source.c for an example of how
     to use this to benchmark a function that needs state across several calls.
+  - init: Name of an initializer function to call to initialize the benchtest.
   - name: See following section for instructions on how to use this directive.
 
   Lines beginning with a single hash '#' are treated as comments.  See