[PATCH v4 5/6] p5310-pack-bitmaps.sh: enable `pack.writeReverseIndex`
- From
Abhradeep Chakraborty via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jul 20, 2022, 14:05 UTC
- Message-ID
- <fc69489e3956893d36394a29b2a9272ed343a2da.1658325914.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1266.v4.git.1658325913.gitgitgadget@gmail.com>
From: Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com>
Enable `pack.writeReverseIndex` before running pack-bitmap related performance tests.
The performance difference with `pack.writeReverseIndex` enabled and with disabled are given below -
With `pack.writeReverseIndex` -------------------------------
Test this tree
-------------------------------------------------------------------------
5310.3: repack to disk 296.55(256.53+14.52)
5310.4: simulated clone 15.64(8.88+1.39)
5310.5: simulated fetch 1.65(2.75+0.20)
5310.6: pack to file (bitmap) 48.71(30.20+7.58)
5310.7: rev-list (commits) 0.61(0.41+0.08)
5310.8: rev-list (objects) 4.38(4.26+0.09)
5310.9: rev-list with tag negated via --not 0.07(0.02+0.04)
--all (objects)
5310.10: rev-list with negative tag (objects) 0.05(0.01+0.03)
5310.11: rev-list count with blob:none 0.08(0.03+0.04)
5310.12: rev-list count with blob:limit=1k 7.29(6.92+0.30)
5310.13: rev-list count with tree:0 0.08(0.03+0.04)
5310.14: simulated partial clone 9.45(8.12+0.41)
5310.16: clone (partial bitmap) 17.02(10.61+2.67)
5310.17: pack to file (partial bitmap) 51.91(28.57+7.48)
5310.18: rev-list with tree filter (partial bitmap) 1.00(0.22+0.24)Without `pack.writeReverseIndex`: -----------------------------
Test this tree
------------------------------------------------------------------------
5310.3: repack to disk 293.80(251.30+14.30)
5310.4: simulated clone 12.50(5.15+1.36)
5310.5: simulated fetch 1.83(2.90+0.23)
5310.6: pack to file (bitmap) 39.70(20.25+7.14)
5310.7: rev-list (commits) 1.00(0.60+0.13)
5310.8: rev-list (objects) 4.11(4.00+0.10)
5310.9: rev-list with tag negated via --not 0.07(0.02+0.05)
--all (objects)
5310.10: rev-list with negative tag (objects) 0.23(0.16+0.06)
5310.11: rev-list count with blob:none 0.27(0.18+0.08)
5310.12: rev-list count with blob:limit=1k 6.41(5.98+0.41)
5310.13: rev-list count with tree:0 0.26(0.18+0.07)
5310.14: simulated partial clone 4.34(3.29+0.37)
5310.16: clone (partial bitmap) 21.48(15.12+2.42)
5310.17: pack to file (partial bitmap) 47.35(37.80+4.84)
5310.18: rev-list with tree filter (partial bitmap) 0.73(0.07+0.21)Signed-off-by: Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com> --- t/perf/p5310-pack-bitmaps.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/t/perf/p5310-pack-bitmaps.sh b/t/perf/p5310-pack-bitmaps.sh index 7ad4f237bc3..6e8abcd5b21 100755 --- a/t/perf/p5310-pack-bitmaps.sh +++ b/t/perf/p5310-pack-bitmaps.sh @@ -13,7 +13,8 @@ test_perf_large_repo # We intentionally use the deprecated pack.writebitmaps # config so that we can test against older versions of git. test_expect_success 'setup bitmap config' ' - git config pack.writebitmaps true + git config pack.writebitmaps true && + git config pack.writeReverseIndex true ' # we need to create the tag up front such that it is covered by the repack and
-- gitgitgadget