improve mem performance test