Fix bug in Patch, add benchmark.