aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2017-11-20 17:56:35 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2017-11-20 18:03:32 +0530
commiteb332f9feb7637eeefed037a683d2a6130d058b1 (patch)
tree5483964821d7e8a62fb669d2d625a8c4501a8f38
parent4d7632ff687dc60fb9ed38bae682d395017b61a8 (diff)
downloadglibc-eb332f9feb7637eeefed037a683d2a6130d058b1.tar
glibc-eb332f9feb7637eeefed037a683d2a6130d058b1.tar.gz
glibc-eb332f9feb7637eeefed037a683d2a6130d058b1.tar.bz2
glibc-eb332f9feb7637eeefed037a683d2a6130d058b1.zip
benchtests: Bump start size since smaller sizes are noisy
Numbers for very small sizes (< 128B) are much noisier for non-cached benchmarks like the walk benchmarks, so don't include them. * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128. * benchtests/bench-memmove-walk.c (START_SIZE): Likewise. * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
-rw-r--r--ChangeLog4
-rw-r--r--benchtests/bench-memcpy-walk.c2
-rw-r--r--benchtests/bench-memmove-walk.c2
-rw-r--r--benchtests/bench-memset-walk.c2
4 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 746222d423..4c2c5bd10c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
+ * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
+ * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
+ * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
+
* benchtests/bench-memcpy-walk.c (do_one_test): Copy only
backwards. Fix timing computation.
* benchtests/bench-memmove-walk.c (do_one_test): Likewise.
diff --git a/benchtests/bench-memcpy-walk.c b/benchtests/bench-memcpy-walk.c
index 5b563411ad..ef90a929f8 100644
--- a/benchtests/bench-memcpy-walk.c
+++ b/benchtests/bench-memcpy-walk.c
@@ -29,7 +29,7 @@
#ifndef MEMCPY_RESULT
# define MEMCPY_RESULT(dst, len) dst
-# define START_SIZE 1
+# define START_SIZE 128
# define MIN_PAGE_SIZE (getpagesize () + 32 * 1024 * 1024)
# define TEST_MAIN
# define TEST_NAME "memcpy"
diff --git a/benchtests/bench-memmove-walk.c b/benchtests/bench-memmove-walk.c
index 969ddd94a2..189ce64a76 100644
--- a/benchtests/bench-memmove-walk.c
+++ b/benchtests/bench-memmove-walk.c
@@ -29,7 +29,7 @@
#ifndef MEMMOVE_RESULT
# define MEMMOVE_RESULT(dst, len) dst
-# define START_SIZE 1
+# define START_SIZE 128
# define MIN_PAGE_SIZE (getpagesize () + 32 * 1024 * 1024)
# define TEST_MAIN
# define TEST_NAME "memmove"
diff --git a/benchtests/bench-memset-walk.c b/benchtests/bench-memset-walk.c
index 80fbe092b8..213bb60ede 100644
--- a/benchtests/bench-memset-walk.c
+++ b/benchtests/bench-memset-walk.c
@@ -22,7 +22,7 @@
#else
# define TEST_NAME "wmemset"
#endif /* WIDE */
-#define START_SIZE (1)
+#define START_SIZE 128
#define MIN_PAGE_SIZE (getpagesize () + 32 * 1024 * 1024)
#define TIMEOUT (20 * 60)
#include "bench-string.h"