how to benchmark a malloc implementation