]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add a new randomized memcpy test for copies up to 256 bytes. The distribution
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 23 Mar 2017 19:00:02 +0000 (19:00 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 23 Mar 2017 19:00:02 +0000 (19:00 +0000)
of the size and alignment is based on a trace of SPEC2006.  Instead of
repeating the same copy over and over again like the existing tests, it times
several thousand different copies to more accurately estimate the overhead of
branch prediction.

* benchtests/Makefile (string-benchset): Add memcpy-random.
* benchtests/bench-memcpy-random.c: New file.

ChangeLog
benchtests/Makefile

index 86599d7b385f32d5038360545e5d15600f35d86c..4ec8d83aecf6778bca0fbccf6ce43b7bf68de04e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * benchtests/Makefile (string-benchset): Add memcpy-random.
+       * benchtests/bench-memcpy-random.c: New file.
+
 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
 
        * stdio-common/printf.h (register_printf_modifier): Change the
index 81edf8a933ce7371ac60c118a4a46daee6391800..a96e9533b3b2d7223c2ce90a723b6a434ba1a1ea 100644 (file)
@@ -37,7 +37,7 @@ 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 memmove-large memset-large
+                  strcoll memcpy-large memcpy-random memmove-large memset-large
 
 # Build and run locale-dependent benchmarks only if we're building natively.
 ifeq (no,$(cross-compiling))