Hi 1sweetdream,
It will depend to some degree on the specifics of each material and you can read more about the factors that can affect the durability and useful life of a mattress in post #4 here but in general terms latex is more durable than memory foam.
Phoenix