Re: [PATCH 05/10] p5303: measure time to repack with keep

2 messages, 2 authors, 2021-01-29 · open the first message on its own page

Re: [PATCH 05/10] p5303: measure time to repack with keep

From: Junio C Hamano <hidden>
Date: 2021-01-29 20:39:24

Jeff King [off-list ref] writes:
On Thu, Jan 28, 2021 at 07:40:40PM -0800, Junio C Hamano wrote:
quoted
quoted
diff --git a/t/perf/p5303-many-packs.sh b/t/perf/p5303-many-packs.sh
index 277d22ec4b..85b077b72b 100755
--- a/t/perf/p5303-many-packs.sh
+++ b/t/perf/p5303-many-packs.sh
@@ -27,8 +27,11 @@ repack_into_n () {
this construct:

	... |
	sed -n '1~5p' |
	head -n "$1" |
        ...

which is a GNUism.  Peff often says that very small population
actually run our perf suite, and this seems to corroborate the
conjecture.
Oops. Looks like I was the one who introduced that. Nobody seems to have
complained, so I'm somewhat tempted to leave it. But it would not be too
hard to replace with perl, I think.
Yeah, but would it be worth it?  I am actually OK to say that you
need GNU sed if you want to run perf.  We already rely on GNU time
to run perf tests, no?

Re: [PATCH 05/10] p5303: measure time to repack with keep

From: Jeff King <hidden>
Date: 2021-01-29 22:11:07

On Fri, Jan 29, 2021 at 12:38:08PM -0800, Junio C Hamano wrote:
quoted
Oops. Looks like I was the one who introduced that. Nobody seems to have
complained, so I'm somewhat tempted to leave it. But it would not be too
hard to replace with perl, I think.
Yeah, but would it be worth it?  I am actually OK to say that you
need GNU sed if you want to run perf.  We already rely on GNU time
to run perf tests, no?
True. This one is a little worse because it's subtle, and somebody might
copy it unknowingly into the regular test suite.

I am happy to leave it, or for you to pick up the patch I sent earlier
(which I did verify produces identical output).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help