This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
BENCHTESTS: memmove benchtests do not test overlapping memory regions
- From: Anton Youdkevitch <anton dot youdkevitch at bell-sw dot com>
- To: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Fri, 8 Feb 2019 18:51:33 +0300
- Subject: BENCHTESTS: memmove benchtests do not test overlapping memory regions
Folks,
The current testing framework is using two buffers
for all sorts of string benchmarks. Considering how
the buffers get allocated (using mmap with the first
argument set to 0) they can never overlap.
So, the memmove benchtest actually tests memcpy
(with a little additional startup) instead of memmove.
I would like to adapt memmove benchset to cover the
case of overlapping memory regions as well.
--
Thanks,
Anton