Test performance of different memory allocation statadgies