| test_description="git-grep's perl regex |
| If GIT_PERF_GREP_THREADS is set to a list of threads (e.g. '1 4 8' |
| etc.) we will test the patterns under those numbers of threads. |
| if test -n "$GIT_PERF_GREP_THREADS" |
| test_set_prereq PERF_GREP_ENGINES_THREADS |
| if ! test_have_prereq PERF_GREP_ENGINES_THREADS |
| test_perf "grep -P '$pattern'" --prereq PCRE " |
| for threads in $GIT_PERF_GREP_THREADS |
| test_perf "grep -P '$pattern' with $threads threads" --prereq PTHREADS,PCRE " |
| git -c grep.threads=$threads -P grep -f pat || : |