]> git.ipfire.org Git - thirdparty/glibc.git/commit
benchtests: Memory walking benchmark for memcpy
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 5 Oct 2017 16:19:37 +0000 (21:49 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 5 Oct 2017 16:50:23 +0000 (22:20 +0530)
commit9ec87fd2b11ffce5c27c8eacb9deaa20e2373ff5
tree5b1ea6ee495759a1935f054af2f62b14d9dc0ecb
parent1e9522c61c7a544d59db32cb7fbbd42e6793d848
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.
ChangeLog
benchtests/Makefile
benchtests/bench-memcpy-walk.c [new file with mode: 0644]