Measuring the average serialization/deserialization times