Skip to content

Commit 91ec48f

Browse files
committed
amend! survey: summarize total sizes by object type
survey: summarize total sizes by object type Now that we have explored objects by count, we can expand that a bit more to summarize the data for the on-disk and inflated size of those objects. This information is helpful for diagnosing both why disk space (and perhaps clone or fetch times) is growing but also why certain operations are slow because the inflated size of the abstract objects that must be processed is so large. Note: zlib-ng is slightly more efficient even at those small sizes, therefore we need to accommodate for differences between zlib/zlib-ng in the test. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f25823b commit 91ec48f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

t/t8100-git-survey.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ test_expect_success 'git survey --progress' '
3030
grep "Preparing object walk" err
3131
'
3232

33+
test_lazy_prereq ZLIB_NG '
34+
git version --build-options | grep zlib-ng
35+
'
36+
3337
test_expect_success 'git survey (default)' '
3438
git survey --all-refs >out 2>err &&
3539
test_line_count = 0 err &&
@@ -54,6 +58,15 @@ test_expect_success 'git survey (default)' '
5458
tags_size_on_disk sha256: 569
5559
EOF
5660
61+
if test_have_prereq ZLIB_NG
62+
then
63+
test_oid_cache <<-EOF
64+
commits_size_on_disk sha256: 1810
65+
tags_size_on_disk sha1: 508
66+
tags_size_on_disk sha256: 565
67+
EOF
68+
fi &&
69+
5770
tr , " " >expect <<-EOF &&
5871
GIT SURVEY for "$(pwd)"
5972
-----------------------------------------------------

0 commit comments

Comments
 (0)