test-lib.sh: unfilter GIT_PERF_*
PATCH 1/1 test-lib.sh: unfilter GIT_PERF_*
These variables are user parameters to control how to run the perf tests. Allow users to do so.
--- t/test-lib.sh | 3 +++ 1 file changed, 3 insertions(+)
t/test-lib.sh +3 -0
@@ -86,6 +86,9 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' PROVE VALGRIND PERF_AGGREGATING_LATER + PERF_LARGE_REPO + PERF_REPEAT_COUNT + PERF_REPO )); my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env); print join("\n", @vars);
Signature · 1 line
1.8.0.rc2.23.g1fb49df
PATCH v2 1/1 test-lib.sh: unfilter GIT_PERF_*
These variables are user parameters to control how to run the perf tests. Allow users to do so.
--- t/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
t/test-lib.sh +1 -1
@@ -85,7 +85,7 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' .*_TEST PROVE VALGRIND - PERF_AGGREGATING_LATER + PERF )); my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env); print join("\n", @vars);
Signature · 1 line
1.8.0.rc2.23.g1fb49df
Quoted 5 lines · Nguyễn Thái Ngọc Duy
These variables are user parameters to control how to run the perf tests. Allow users to do so.
Signed-off-by Nguyễn Thái Ngọc Duy <[email protected]>---
I think the Subject makes more sense, so I'd suggest replacing the current one with "PERF_", not with "PERF".
Quoted 16 lines
t/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)t/test-lib.sh +1
-1@@ -85,7 +85,7 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' .*_TEST PROVE VALGRIND - PERF_AGGREGATING_LATER + PERF )); my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env); print join("\n", @vars);
Quoted 2 lines · Nguyễn Thái Ngọc Duy
These variables are user parameters to control how to run the perf tests. Allow users to do so.
[...]
t/test-lib.sh unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' · line 92
Quoted 8 lines
t/test-lib.sh +3
-0@@ -86,6 +86,9 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' PROVE VALGRIND PERF_AGGREGATING_LATER + PERF_LARGE_REPO + PERF_REPEAT_COUNT + PERF_REPO ));
Wouldn't it be more futureproof to put simply PERF as an entry, and rely on the leading-match logic
t/test-lib.sh unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' · line 93
Quoted 1 line
t/test-lib.sh +0
-0my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env);
to allow all GIT_PERF variables?
Other than that, Ack. I never noticed because I set mine through config.mak, which goes to GIT-BUILD-OPTIONS. Those options are not exported, which means perl does not pick them up. (That just took me far too long to realize.)
Signature · 2 lines
Thomas Rast
trast@{inf,student}.ethz.chQuoted 17 lines · Thomas Rast
Quoted 2 lines · Nguyễn Thái Ngọc Duy
These variables are user parameters to control how to run the perf tests. Allow users to do so.
[...]
t/test-lib.sh unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' · line 92
Quoted 8 lines
t/test-lib.sh +3
-0@@ -86,6 +86,9 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' PROVE VALGRIND PERF_AGGREGATING_LATER + PERF_LARGE_REPO + PERF_REPEAT_COUNT + PERF_REPO ));Wouldn't it be more futureproof to put simply PERF as an entry, and rely on the leading-match logic
Quoted 3 lines
t/test-lib.sh unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' · line 93
Quoted 1 line
t/test-lib.sh +0
-0my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env);to allow all
GIT_PERFvariables?
Yeah.
Quoted 4 lines
Other than that, Ack. I never noticed because I set mine through config.mak, which goes to GIT-BUILD-OPTIONS. Those options are not exported, which means perl does not pick them up. (That just took me far too long to realize.)
By the way is there an option to skip the first few runs (too lazy to check out the source code, apparently)? I tried linux-2.6 as the large repo and I think the first (cold cache) run ruins the numbers.
Signature · 1 line
Duy
PATCH v3 1/1 test-lib.sh: unfilter GIT_PERF_*
In reply to Nguyễn Thái Ngọc DuyThese variables are user parameters to control how to run the perf tests. Allow users to do so.
---
PERF -> PERF_
t/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
t/test-lib.sh +1 -1
@@ -85,7 +85,7 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' .*_TEST PROVE VALGRIND - PERF_AGGREGATING_LATER + PERF_ )); my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env); print join("\n", @vars);
Signature · 1 line
1.8.0.rc2.23.g1fb49df
Quoted 4 lines · Nguyễn Thái Ngọc Duy
These variables are user parameters to control how to run the perf tests. Allow users to do so.
Signed-off-by Nguyễn Thái Ngọc Duy <[email protected]>
FWIW, of the three versions proposed, this one makes the most sense to me. Looks good.