From patchwork Wed Jul 20 14:05:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhradeep Chakraborty X-Patchwork-Id: 12924035 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86F09CCA480 for ; Wed, 20 Jul 2022 14:05:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236836AbiGTOFh (ORCPT ); Wed, 20 Jul 2022 10:05:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232729AbiGTOF0 (ORCPT ); Wed, 20 Jul 2022 10:05:26 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60AC515FC9 for ; Wed, 20 Jul 2022 07:05:23 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id i132-20020a1c3b8a000000b003a2fa488efdso1415509wma.4 for ; Wed, 20 Jul 2022 07:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:references:from:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=dRxvaKKIUZWa1PC2tLR6WPHJBu061R3VyLFIM7v5ZQs=; b=h/e3ef/XK5JtVd5X+pzdXTh4KiaY+eW+l1qxE93UJ57kQC5+AQFRsCgLTE9iAiWvrx j+Vcg+YDinQbnzLQKPeg/9YXD62S/25ElfaMb/HidbVN5YuYA/jMdEiY9qhsYNPJL+cY hFslnh3jLsKMfb8l+DejlrNGTvrlQedFyhA7aHKWQ+yL14z4r5I+PKmKaYGYjBUoGonX Plne4mXWzND6J8a2gZzzinYekpBG1WfxgDXI0uIS6cnNkmg6jCaFrH4Iy5V00IVg3c7q BSCeb+isEAYGxkcegJVEkxZKqVGqYGyOuCkKpLoZdLhd9utkwX+vZCqlzqCYX8tHfND+ MgAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=dRxvaKKIUZWa1PC2tLR6WPHJBu061R3VyLFIM7v5ZQs=; b=kp9S6kJRkrwNFGbwiha/9mhjpiQsgse9tKr4LxwBtBpqL9mVlpfzyakCQjDF9QF5SG z1/jbrlLQH+JrqK5VUblF4rUEzUzwVsB5xb+dGSnl8rLABYZMY5CtdJPGsc58XEY3Mcq 7fCqEtfDbOkt6qlCyDJqNquEre3j3sj6DIU1wJoFUpFLpSzXCrhYzD49bwCrWgy8ixoo +bLtqeGpV9WJYfszjJ98/EHGsW6V2stJaTCtYdcMJkWvUwT6SVRXJX66HyxpHivgaT9x srgewTykqJSD+3ARl9IkKl2e2/jQogUT4HVt6gUvMyiv6gMudfS6DtOyyPAD6u2/z1Yq dQCw== X-Gm-Message-State: AJIora/ti3qGj05j8IhKsbYjd8YY40TxHt6oAxl5FNBO0yrqFfzI9d9I 15FWqHpHr9WHuGbn4qnQowpUDuLzJSk= X-Google-Smtp-Source: AGRyM1tbtquMik8RcmY9LJPNDadm14kq0JUD08DUkR8botLgpFPGcXEgbs6Y7g4vHkPcJxWcCPOS8w== X-Received: by 2002:a05:600c:4f11:b0:3a1:8631:b6b4 with SMTP id l17-20020a05600c4f1100b003a18631b6b4mr3904214wmq.94.1658325921625; Wed, 20 Jul 2022 07:05:21 -0700 (PDT) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id l2-20020adff482000000b0021b9585276dsm16024511wro.101.2022.07.20.07.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 07:05:21 -0700 (PDT) Message-Id: In-Reply-To: References: Date: Wed, 20 Jul 2022 14:05:12 +0000 Subject: [PATCH v4 5/6] p5310-pack-bitmaps.sh: enable `pack.writeReverseIndex` Fcc: Sent MIME-Version: 1.0 To: git@vger.kernel.org Cc: Taylor Blau , Kaartic Sivaram , Derrick Stolee , Philip Oakley , Martin =?utf-8?b?w4VncmVu?= , Abhradeep Chakraborty , Abhradeep Chakraborty Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Abhradeep Chakraborty From: Abhradeep Chakraborty 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 --- 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