made benchmark use valid memory