Skip to content

Commit 68cd0cf

Browse files
committed
Merge branch 'pb/perf-test-fixes'
"make perf" fixes. * pb/perf-test-fixes: p7821: fix instructions for testing with threads p9210: fix 'scalar clone' when running from a detached HEAD p7821: fix test_perf invocation for prereqs
2 parents 4bbb303 + 1665f12 commit 68cd0cf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

t/perf/p7821-grep-engines-fixed.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git-grep. Make sure to include a leading space,
77
e.g. GIT_PERF_7821_GREP_OPTS=' -w'. See p7820-grep-engines.sh for more
88
options to try.
99
10-
If GIT_PERF_7821_THREADS is set to a list of threads (e.g. '1 4 8'
10+
If GIT_PERF_GREP_THREADS is set to a list of threads (e.g. '1 4 8'
1111
etc.) we will test the patterns under those numbers of threads.
1212
"
1313

@@ -33,13 +33,13 @@ do
3333
fi
3434
if ! test_have_prereq PERF_GREP_ENGINES_THREADS
3535
then
36-
test_perf $prereq "$engine grep$GIT_PERF_7821_GREP_OPTS $pattern" "
36+
test_perf "$engine grep$GIT_PERF_7821_GREP_OPTS $pattern" --prereq "$prereq" "
3737
git -c grep.patternType=$engine grep$GIT_PERF_7821_GREP_OPTS $pattern >'out.$engine' || :
3838
"
3939
else
4040
for threads in $GIT_PERF_GREP_THREADS
4141
do
42-
test_perf PTHREADS,$prereq "$engine grep$GIT_PERF_7821_GREP_OPTS $pattern with $threads threads" "
42+
test_perf "$engine grep$GIT_PERF_7821_GREP_OPTS $pattern with $threads threads" --prereq "PTHREADS,$prereq" "
4343
git -c grep.patternType=$engine -c grep.threads=$threads grep$GIT_PERF_7821_GREP_OPTS $pattern >'out.$engine.$threads' || :
4444
"
4545
done

t/perf/p9210-scalar.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ test_perf_large_repo "$TRASH_DIRECTORY/to-clone"
77

88
test_expect_success 'enable server-side partial clone' '
99
git -C to-clone config uploadpack.allowFilter true &&
10-
git -C to-clone config uploadpack.allowAnySHA1InWant true
10+
git -C to-clone config uploadpack.allowAnySHA1InWant true &&
11+
git -C to-clone checkout -B test-branch
1112
'
1213

1314
test_perf 'scalar clone' '

0 commit comments

Comments
 (0)