Skip to content

Commit 40bc872

Browse files
rscharfegitster
authored andcommitted
p0071: test performance of llist_mergesort()
Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 84edc40 commit 40bc872

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/perf/p0071-sort.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,15 @@ do
3838
"
3939
done
4040

41+
for file in unsorted sorted reversed
42+
do
43+
test_perf "llist_mergesort() $file" "
44+
test-tool mergesort sort <$file >actual
45+
"
46+
47+
test_expect_success "llist_mergesort() $file sorts like sort(1)" "
48+
test_cmp_bin sorted actual
49+
"
50+
done
51+
4152
test_done

0 commit comments

Comments
 (0)