]> git.ipfire.org Git - thirdparty/git.git/blame - t/perf/p4001-diff-no-index.sh
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / t / perf / p4001-diff-no-index.sh
CommitLineData
6df5762d
TG
1#!/bin/sh
2
3test_description="Test diff --no-index performance"
4
5. ./perf-lib.sh
6
7test_perf_large_repo
8test_checkout_worktree
9
10file1=$(git ls-files | tail -n 2 | head -1)
11file2=$(git ls-files | tail -n 1 | head -1)
12
13test_expect_success "empty files, so they take no time to diff" "
14 echo >$file1 &&
15 echo >$file2
16"
17
18test_perf "diff --no-index" "
19 git diff --no-index $file1 $file2 >/dev/null
20"
21
22test_done