Merge branch 'sg/travis-check-untracked'
[git.git] / t / perf / p0007-write-cache.sh
blob261fe92fd93aaf65101dfe4d1b87741453985cbe
1 #!/bin/sh
3 test_description="Tests performance of writing the index"
5 . ./perf-lib.sh
7 test_perf_default_repo
9 test_expect_success "setup repo" '
10 if git rev-parse --verify refs/heads/p0006-ballast^{commit}
11 then
12 echo Assuming synthetic repo from many-files.sh
13 git config --local core.sparsecheckout 1
14 cat >.git/info/sparse-checkout <<-EOF
16 !ballast/*
17 EOF
18 else
19 echo Assuming non-synthetic repo...
20 fi &&
21 nr_files=$(git ls-files | wc -l)
24 count=3
25 test_perf "write_locked_index $count times ($nr_files files)" "
26 test-write-cache $count
29 test_done