Re: [PATCH v5 4/5] p7300: add performance tests for clean

2015-04-28 Thread erik elfström
On Tue, Apr 28, 2015 at 8:33 AM, Jeff King wrote: > > Do we actually need a large repo here? The real cost is coming from the > directories we create. We could actually start with a totally empty > repository if we wanted (though I don't think the t/perf system handles > that right now). But if th

Re: [PATCH v5 4/5] p7300: add performance tests for clean

2015-04-27 Thread Jeff King
On Sun, Apr 26, 2015 at 08:49:44AM +0200, Erik Elfström wrote: > diff --git a/t/perf/p7300-clean.sh b/t/perf/p7300-clean.sh > new file mode 100755 > index 000..6ae55ec > --- /dev/null > +++ b/t/perf/p7300-clean.sh > @@ -0,0 +1,31 @@ > +#!/bin/sh > + > +test_description="Test git-clean performa

[PATCH v5 4/5] p7300: add performance tests for clean

2015-04-25 Thread Erik Elfström
The tests are run in dry-run mode to avoid having to restore the test directories for each timed iteration. Using dry-run is an acceptable compromise since we are mostly interested in the initial computation of what to clean and not so much in the cleaning it self. Signed-off-by: Erik Elfström --