Validate the results in addition to benchmarking.
A few nits.
It's not super clear what "the real memcmp" means here. Maybe something along those lines:
// This function prevents the compiler from interfering with `memcmp` and makes sure the function is called.
Maybe it's worth instantiating the predicate object and use it as a functor.