]> git.ipfire.org Git - thirdparty/git.git/blame - t/perf/p0071-sort.sh
Merge branch 'dl/checkout-p-merge-base'
[thirdparty/git.git] / t / perf / p0071-sort.sh
CommitLineData
564e94e6
RS
1#!/bin/sh
2
3test_description='Basic sort performance tests'
4. ./perf-lib.sh
5
6test_perf_default_repo
7
8test_expect_success 'setup' '
9 git ls-files --stage "*.[ch]" "*.sh" |
10 cut -f2 -d" " |
11 git cat-file --batch >unsorted
12'
13
14test_perf 'sort(1)' '
15 sort <unsorted >expect
16'
17
18test_perf 'string_list_sort()' '
c932a5ff 19 test-tool string-list sort <unsorted >actual
564e94e6
RS
20'
21
22test_expect_success 'string_list_sort() sorts like sort(1)' '
23 test_cmp_bin expect actual
24'
25
26test_done