git-svn: canonicalize earlier
[git/gitweb.git] / t / perf / p7810-grep.sh
blob9f4ade639f74604e05fb42d236caf0ad621c3f7a
1 #!/bin/sh
3 test_description="git-grep performance in various modes"
5 . ./perf-lib.sh
7 test_perf_large_repo
8 test_checkout_worktree
10 test_perf 'grep worktree, cheap regex' '
11 git grep some_nonexistent_string || :
13 test_perf 'grep worktree, expensive regex' '
14 git grep "^.* *some_nonexistent_string$" || :
16 test_perf 'grep --cached, cheap regex' '
17 git grep --cached some_nonexistent_string || :
19 test_perf 'grep --cached, expensive regex' '
20 git grep --cached "^.* *some_nonexistent_string$" || :
23 test_done