]> git.ipfire.org Git - thirdparty/git.git/blame - t/perf/p7810-grep.sh
Merge branch 'jk/attr-macro-fix'
[thirdparty/git.git] / t / perf / p7810-grep.sh
CommitLineData
134593c8
TR
1#!/bin/sh
2
3test_description="git-grep performance in various modes"
4
5. ./perf-lib.sh
6
7test_perf_large_repo
8test_checkout_worktree
9
10test_perf 'grep worktree, cheap regex' '
11 git grep some_nonexistent_string || :
12'
13test_perf 'grep worktree, expensive regex' '
14 git grep "^.* *some_nonexistent_string$" || :
15'
16test_perf 'grep --cached, cheap regex' '
17 git grep --cached some_nonexistent_string || :
18'
19test_perf 'grep --cached, expensive regex' '
20 git grep --cached "^.* *some_nonexistent_string$" || :
21'
22
23test_done