Skip to content

Commit 1c6833c

Browse files
nipunn1313gitster
authored andcommitted
t/perf/fsmonitor: add benchmark for dirty status
This benchmark covers the git status time for a heavily dirty directory - benchmarking fsmonitor's refresh When running to compare our perl vs rs-git-fsmonitor - we see that the perl script incurs significant overhead - further motivation to provide a faster implementation within git. 7519.7: status (dirty) (fsmonitor=query-watchman) 10.05(7.78+1.56) 7519.20: status (dirty) (fsmonitor=rs-git-fsmonitor) 6.72(4.37+1.64) 7519.33: status (dirty) (fsmonitor=disabled) 5.62(4.24+2.03) Signed-off-by: Nipunn Koorapati <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a948864 commit 1c6833c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/perf/p7519-fsmonitor.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ test_fsmonitor_suite() {
165165
git status -uall
166166
'
167167

168+
test_perf_w_drop_caches "status (dirty) ($DESC)" '
169+
git ls-files | head -100000 | xargs -d "\n" touch -h &&
170+
git status
171+
'
172+
168173
test_perf_w_drop_caches "diff ($DESC)" '
169174
git diff
170175
'

0 commit comments

Comments
 (0)