fix delta-mem bugs and modify benchmark option