Memory Management and Benchmark Test