Merge branch 'jc/revision-dash-count-parsing'
[git.git] / t / perf / p4001-diff-no-index.sh
blob683be6984f5ad6ff14e19a87128b6e5a1bb7e4a0
1 #!/bin/sh
3 test_description="Test diff --no-index performance"
5 . ./perf-lib.sh
7 test_perf_large_repo
8 test_checkout_worktree
10 file1=$(git ls-files | tail -n 2 | head -1)
11 file2=$(git ls-files | tail -n 1 | head -1)
13 test_expect_success "empty files, so they take no time to diff" "
14 echo >$file1 &&
15 echo >$file2
18 test_perf "diff --no-index" "
19 git diff --no-index $file1 $file2 >/dev/null
22 test_done