aboutsummaryrefslogtreecommitdiff
path: root/benchtests/Makefile
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2017-10-05 21:49:37 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2017-10-05 22:20:23 +0530
commit9ec87fd2b11ffce5c27c8eacb9deaa20e2373ff5 (patch)
tree5b1ea6ee495759a1935f054af2f62b14d9dc0ecb /benchtests/Makefile
parent1e9522c61c7a544d59db32cb7fbbd42e6793d848 (diff)
downloadglibc-9ec87fd2b11ffce5c27c8eacb9deaa20e2373ff5.zip
glibc-9ec87fd2b11ffce5c27c8eacb9deaa20e2373ff5.tar.gz
glibc-9ec87fd2b11ffce5c27c8eacb9deaa20e2373ff5.tar.bz2
benchtests: Memory walking benchmark for memcpy
This benchmark is an attempt to eliminate cache effects from string benchmarks. The benchmark walks both ways through a large memory area and copies different sizes of memory and alignments one at a time instead of looping around in the same memory area. This is a good metric to have alongside the other memcpy benchmarks, especially for larger sizes where the likelihood of the call being done only once is pretty high. * benchtests/bench-memcpy-walk.c: New file. * benchtests/Makefile (string-benchset): Add it.
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r--benchtests/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 3acc39c..d086cc6 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -37,7 +37,8 @@ string-benchset := bcopy bzero memccpy memchr memcmp memcpy memmem memmove \
strcat strchr strchrnul strcmp strcpy strcspn strlen \
strncasecmp strncat strncmp strncpy strnlen strpbrk strrchr \
strspn strstr strcpy_chk stpcpy_chk memrchr strsep strtok \
- strcoll memcpy-large memcpy-random memmove-large memset-large
+ strcoll memcpy-large memcpy-random memmove-large memset-large \
+ memcpy-walk
# Build and run locale-dependent benchmarks only if we're building natively.
ifeq (no,$(cross-compiling))