Skip to contentSkip to conversation

test-lib.sh: unfilter GIT_PERF_*

PATCH In review Nguyễn Thái Ngọc Duy 4 participants 7 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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
index f50f834..b8d35d1 100644
@@ -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
#1 lore raw

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
index f50f834..e1c8c85 100644
@@ -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
#2 lore raw
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.

---

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
index f50f834..e1c8c85 100644
@@ -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);
#5 lore raw
In reply to Nguyễn Thái Ngọc Duy
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 -0
 	my @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.ch
author
#6 lore raw
Quoted 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 -0
      my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env);

to allow all GIT_PERF variables?

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
#3 lore raw

PATCH v3 1/1 test-lib.sh: unfilter GIT_PERF_*

In reply to 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.

---
PERF -> PERF_

 t/test-lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/test-lib.sh +1 -1
index f50f834..bf4cf71 100644
@@ -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