Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/perf/p7810-grep.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / perf / p7810-grep.sh` 23 lines ยท 512 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description="git-grep performance in various modes" 4 5 . ./perf-lib.sh 6 7 test_perf_large_repo 8 test_checkout_worktree 9 10 test_perf 'grep worktree, cheap regex' ' 11 git grep some_nonexistent_string || : 12 ' 13 test_perf 'grep worktree, expensive regex' ' 14 git grep "^.* *some_nonexistent_string$" || : 15 ' 16 test_perf 'grep --cached, cheap regex' ' 17 git grep --cached some_nonexistent_string || : 18 ' 19 test_perf 'grep --cached, expensive regex' ' 20 git grep --cached "^.* *some_nonexistent_string$" || : 21 ' 22 23 test_done