Add memory access in benchmark