3 test_description
='test scalar performance'
6 test_perf_large_repo
"$TRASH_DIRECTORY/to-clone"
8 test_expect_success
'enable server-side partial clone' '
9 git -C to-clone config uploadpack.allowFilter true &&
10 git -C to-clone config uploadpack.allowAnySHA1InWant true
13 test_perf
'scalar clone' '
14 rm -rf scalar-clone &&
15 scalar clone "file://$(pwd)/to-clone" scalar-clone
18 test_perf
'git clone' '
20 git clone "file://$(pwd)/to-clone" git-clone
23 test_compare_perf
() {
27 test_perf
"$command $args (scalar)" "
28 $command -C scalar-clone/src $args
31 test_perf
"$command $args (non-scalar)" "
32 $command -C git-clone $args
36 test_compare_perf git status
37 test_compare_perf test_commit
--append --no-tag A