]> git.ipfire.org Git - thirdparty/git.git/commit
diff --color-moved: add perf tests
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 9 Dec 2021 10:29:55 +0000 (10:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Dec 2021 21:24:05 +0000 (13:24 -0800)
commitf73613ac33aad6f08aa1bc07e596202f19e760d1
treec754e2ac2e693c12527ea5761751e6adf4ad1a14
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb
diff --color-moved: add perf tests

Add some tests so we can monitor changes to the performance of the
move detection code. The tests record the performance --color-moved
and --color-moved-ws=allow-indentation-change for a large diff and a
sequence of smaller diffs. The range of commits used for the large
diff can be customized by exporting TEST_REV_A and TEST_REV_B when
running the test.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p4002-diff-color-moved.sh [new file with mode: 0755]