add a function to do a benchmark of memcpy