aboutsummaryrefslogtreecommitdiffstats
path: root/t/perf/run
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2022-09-02 15:56:49 +0000
committerJunio C Hamano <gitster@pobox.com>2022-09-02 10:02:56 -0700
commitba1b117eec2f73c84f73f827e6f3ac8b82b35585 (patch)
tree7f427548851f37a3aeea5bb68b252ae22fc96006 /t/perf/run
parente2809233d19e0faacedf59f229ec292cb9e7c7ef (diff)
downloadgit-ba1b117eec2f73c84f73f827e6f3ac8b82b35585.tar.gz
t/perf: add 'GIT_PERF_USE_SCALAR' run option
Add a 'GIT_PERF_USE_SCALAR' environment variable (and corresponding perf config 'useScalar') to register a repository created with any of: * test_perf_fresh_repo * test_perf_default_repo * test_perf_large_repo as a Scalar enlistment. This is intended to allow a developer to test the impact of Scalar on already-defined performance scenarios. Suggested-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/run')
-rwxr-xr-xt/perf/run3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/perf/run b/t/perf/run
index 55219aa405..33da4d2aba 100755
--- a/t/perf/run
+++ b/t/perf/run
@@ -171,6 +171,9 @@ run_subsection () {
get_var_from_env_or_config "GIT_PERF_MAKE_COMMAND" "perf" "makeCommand"
get_var_from_env_or_config "GIT_PERF_MAKE_OPTS" "perf" "makeOpts"
+ get_var_from_env_or_config "GIT_PERF_USE_SCALAR" "perf" "useScalar" "--bool"
+ export GIT_PERF_USE_SCALAR
+
get_var_from_env_or_config "GIT_PERF_REPO_NAME" "perf" "repoName"
export GIT_PERF_REPO_NAME