Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/perf/p0007-write-cache.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / perf / p0007-write-cache.sh` 29 lines ยท 579 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description="Tests performance of writing the index" 4 5 . ./perf-lib.sh 6 7 test_perf_default_repo 8 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 15 /* 16 !ballast/* 17 EOF 18 else 19 echo Assuming non-synthetic repo... 20 fi && 21 nr_files=$(git ls-files | wc -l) 22 ' 23 24 count=3 25 test_perf "write_locked_index $count times ($nr_files files)" " 26 test-tool write-cache $count 27 " 28 29 test_done