Add benchmark for modifyF