mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Add a new randomized memcpy test for copies up to 256 bytes. The distribution
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.
This commit is contained in:
parent
ca4dc74659
commit
8d2030d659
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user