benchtests: Add additional cases to bench-memcpy.c and bench-memmove.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 1 Nov 2021 05:49:49 +0000 (00:49 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 6 Nov 2021 21:17:51 +0000 (16:17 -0500)
commit5e6cce9b34e1609dc5183312a9efaf0d420a547a
tree0bd200d8d31be312a936a31c2c683b91950a85af
parentd585ba47fcda99fdf228e3e45a01b11a15efbc5a
benchtests: Add additional cases to bench-memcpy.c and bench-memmove.c

This commit adds more benchmarks for the common memcpy/memmove
benchmarks. The most signifcant cases are the half page offsets. The
current versions leaves dst and src near page aligned which leads to
false 4k aliasing on x86_64. This can add noise due to false
dependencies from one run to the next. As well, this seems like more
of an edge case that common case so it shouldn't be the only thing

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
benchtests/bench-memcpy.c
benchtests/bench-memmove.c