[PATCH v2 0/3] Introduce a perf test for interactive rebase
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 11, 2016, 08:31 UTC
- Message-ID
- <cover.1462955446.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <cover.1462894344.git.johannes.schindelin@gmx.de>
This is the second preparatory patch series for my rebase--helper work (i.e. moving parts of the interactive rebase into a builtin).
It simply introduces a perf test (and ensures that it runs in my environment) so as to better determine how much the performance changes, really.
Johannes Schindelin (3): perf: let's disable symlinks when they are not available perf: make the tests work in worktrees Add a perf test for rebase -i
t/perf/p3404-rebase-interactive.sh | 31 +++++++++++++++++++++++++++++++ t/perf/perf-lib.sh | 18 +++++++++++------- 2 files changed, 42 insertions(+), 7 deletions(-) create mode 100755 t/perf/p3404-rebase-interactive.sh
Published-As: https://github.com/dscho/git/releases/tag/perf-rebase-i-v2 Interdiff vs v1:
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh
index e5682f7..cb88b08 100644
--- a/t/perf/perf-lib.sh
+++ b/t/perf/perf-lib.sh
@@ -81,7 +81,7 @@ test_perf_create_repo_from () {
repo="$1"
source="$2"
source_git="$(cd "$source" && git rev-parse --git-dir)"
- objects_dir="$(git rev-parse --git-path objects)"
+ objects_dir="$(cd "$source" && git rev-parse --git-path objects)"
mkdir -p "$repo/.git"
(
{ cp -Rl "$objects_dir" "$repo/.git/" 2>/dev/null ||
@@ -97,10 +97,10 @@ test_perf_create_repo_from () {
done &&
cd "$repo" &&
git init -q &&
- if test_have_prereq MINGW
- then
+ git init -q && {
+ test_have_prereq SYMLINKS ||
git config core.symlinks false
- fi &&
+ } &&
mv .git/hooks .git/hooks-disabled 2>/dev/null
) || error "failed to copy repository '$source' to '$repo'"
}-- 2.8.2.465.gb077790