Skip to content

Commit b01a786

Browse files
committed
t/perf/p2000: add perf test for git-rm
The `p2000` tests demonstrate a ~96% execution time reduction for 'git rm' using a sparse index. Test before after ------------------------------------------------------------- 2000.74: git rm -f f2/f4/a (full-v3) 0.66 0.88 +33.0% 2000.75: git rm -f f2/f4/a (full-v4) 0.67 0.75 +12.0% 2000.76: git rm -f f2/f4/a (sparse-v3) 1.99 0.08 -96.0% 2000.77: git rm -f f2/f4/a (sparse-v4) 2.06 0.07 -96.6% Signed-off-by: Shaoxuan Yuan <[email protected]>
1 parent dfc585f commit b01a786

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/perf/p2000-sparse-operations.sh

+1
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,6 @@ test_perf_on_all git blame $SPARSE_CONE/f3/a
123123
test_perf_on_all git read-tree -mu HEAD
124124
test_perf_on_all git checkout-index -f --all
125125
test_perf_on_all git update-index --add --remove $SPARSE_CONE/a
126+
test_perf_on_all git rm -f $SPARSE_CONE/a
126127

127128
test_done

0 commit comments

Comments
 (0)