From: René Scharfe Date: Fri, 1 Oct 2021 09:19:51 +0000 (+0200) Subject: p0071: test performance of llist_mergesort() X-Git-Tag: v2.34.0-rc0~54^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40bc872adbeb9eff4bb2504730b901decb0aead5;p=thirdparty%2Fgit.git p0071: test performance of llist_mergesort() Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- diff --git a/t/perf/p0071-sort.sh b/t/perf/p0071-sort.sh index 5b39b68f35..ed366e2e12 100755 --- a/t/perf/p0071-sort.sh +++ b/t/perf/p0071-sort.sh @@ -38,4 +38,15 @@ do " done +for file in unsorted sorted reversed +do + test_perf "llist_mergesort() $file" " + test-tool mergesort sort <$file >actual + " + + test_expect_success "llist_mergesort() $file sorts like sort(1)" " + test_cmp_bin sorted actual + " +done + test_done