From 9ec87fd2b11ffce5c27c8eacb9deaa20e2373ff5 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 5 Oct 2017 21:49:37 +0530 Subject: 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. --- benchtests/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'benchtests/Makefile') diff --git a/benchtests/Makefile b/benchtests/Makefile index 3acc39cafa..d086cc671f 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)) -- cgit 1.4.1