Test different java memory type read/write performance