1#!/bin/sh
23
test_description="Test diff --no-index performance"
45
. ./perf-lib.sh
67
test_perf_large_repo
8test_checkout_worktree
910
file1=$(git ls-files | tail -n 2 | head -1)
11file2=$(git ls-files | tail -n 1 | head -1)
1213
test_expect_success "empty files, so they take no time to diff" "
14echo >$file1 &&
15echo >$file2
16"
1718
test_perf "diff --no-index" "
19git diff --no-index $file1 $file2 >/dev/null
20"
2122
test_done