aboutsummaryrefslogtreecommitdiff
path: root/benchtests/bench-string.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-04-06 08:37:20 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-04-06 08:37:39 -0700
commita25322f4e855eb5b24c63c2395c941c3327627ca (patch)
treecc8b1f49463d80b515ebbac336aad323bd974f4a /benchtests/bench-string.h
parentaa7353ce5cb7acc83fe4fb45ef9d9a0cd67dcbda (diff)
downloadglibc-a25322f4e855eb5b24c63c2395c941c3327627ca.zip
glibc-a25322f4e855eb5b24c63c2395c941c3327627ca.tar.gz
glibc-a25322f4e855eb5b24c63c2395c941c3327627ca.tar.bz2
Add memcpy/memmove/memset benchmarks with large data
Add memcpy, memmove and memset benchmarks with large data sizes. * benchtests/Makefile (string-benchset): Add memcpy-large, memmove-large and memset-large. * benchtests/bench-memcpy-large.c: New file. * benchtests/bench-memmove-large.c: Likewise. * benchtests/bench-memmove-large.c: Likewise. * benchtests/bench-string.h (TIMEOUT): Don't redefine.
Diffstat (limited to 'benchtests/bench-string.h')
-rw-r--r--benchtests/bench-string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/benchtests/bench-string.h b/benchtests/bench-string.h
index be4c618..9c5371e 100644
--- a/benchtests/bench-string.h
+++ b/benchtests/bench-string.h
@@ -56,7 +56,9 @@ extern impl_t __start_impls[], __stop_impls[];
# define TEST_FUNCTION test_main ()
-# define TIMEOUT (4 * 60)
+# ifndef TIMEOUT
+# define TIMEOUT (4 * 60)
+# endif
# define OPT_ITERATIONS 10000
# define OPT_RANDOM 10001
# define OPT_SEED 10002