Test how different ways of allocating memory affects memory segment sizes