Article View: linux.kernel.git
Article #462[PATCH v2 10/12] t/perf: measure --force-with-lease in p5516
From: Jon Simons
Date: Wed, 14 Oct 2026 03:13
Date: Wed, 14 Oct 2026 03:13
73 lines
7744 bytes
7744 bytes
Extend p5516 with rows that push the same delete refspecs plus one explicit --force-with-lease=<refname>:<expect> per refspec. The new rows are used to demonstrate a speedup in a subsequent commit. Numbers as of this commit (`./p5516-push-delete-refspec.sh -r create,lease`): Test this tree ------------------------------------------- 5516.16: empty:lease:1 0.12(0.06+0.10) 5516.19: empty:lease:10 0.17(0.10+0.10) 5516.22: empty:lease:100 0.45(0.38+0.10) 5516.25: mirror:lease:1 0.15(0.09+0.10) 5516.28: mirror:lease:10 0.18(0.12+0.10) 5516.31: mirror:lease:100 0.52(0.42+0.10) Signed-off-by: Jon Simons <jon@jonsimons.org> --- t/perf/p5516-push-delete-refspec.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/t/perf/p5516-push-delete-refspec.sh b/t/perf/p5516-push-delete-refspec.sh index 0e425193e5..a1e3f74bf7 100755 --- a/t/perf/p5516-push-delete-refspec.sh +++ b/t/perf/p5516-push-delete-refspec.sh @@ -6,6 +6,9 @@ Measure client-side matching of explicit delete refspecs with "git push --dry-run" against a server that advertises lots of refs. An empty client (no local refs) and a mirror client (full local copy of the server refs) are tested pushing 1, 10, and 100 refspecs each. + +A second set of rows measures one --force-with-lease per refspec for +timing those paths. ' . ./perf-lib.sh @@ -24,6 +27,8 @@ test_expect_success 'create server with many refs and two clients' ' git -C client_mirror config --unset remote.origin.mirror ' +oid=$(git -C server rev-parse HEAD) + for mode in empty mirror do client=client_$mode @@ -39,4 +44,24 @@ do done done +for mode in empty mirror +do + client=client_$mode + for nr_refspecs in 1 10 100 + do + test_expect_success "create $mode lease refspecs: $nr_refspecs" ' + test_seq -f ":refs/heads/b%d" $nr_refspecs >refspecs + ' + + test_expect_success "create $mode leases: $nr_refspecs" ' + test_seq -f "refs/heads/b%d:'"$oid"'" $nr_refspecs | + sed "s/^/--force-with-lease=/" >leases + ' + + test_perf "$mode:lease:$nr_refspecs" ' + git -C '"$client"' push --dry-run origin $(cat refspecs) $(cat leases) + ' + done +done + test_done -- 2.55.0
Technical Details
Message-ID:
<20261014031347.50433-11-jon@jonsimons.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-71920-linux-kernel-git=dewy.ruReferences:
<20261009192953.81794-1-jon@jonsimons.org> <20261014031347.50433-1-jon@jonsimons.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-71920-linux-kernel-git=dewy.ru From: jon@jonsimons.org (Jon Simons) Newsgroups: linux.kernel.git Subject: [PATCH v2 10/12] t/perf: measure --force-with-lease in p5516 Date: Tue, 13 Oct 2026 23:13:45 -0400 Organization: Usenet Network Message-ID: <20261014031347.50433-11-jon@jonsimons.org> References: <20261009192953.81794-1-jon@jonsimons.org> <20261014031347.50433-1-jon@jonsimons.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2206024"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:M8quAtEyv4ZoZqKjhVHXiCyb5pw= sha256:2nthEk883XSsweF1IoJX95bJU+R+b/X7rDF5BVoUw2E= sha1:3VumHqFIxxnhygex+J9jqaDZ6OI= sha256:eXTSSO/6cW0C67cTfHQV4SKHoUKynEMWinRaDa5/kHU= List-ID: <git.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 1C04910FFC4; Wed, 14 Oct 2026 06:15:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.949 X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=jonsimons.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vbvUuxutKx3F; Wed, 14 Oct 2026 06:15:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-71920-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=jonsimons.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id A5ACA10FF9A; Wed, 14 Oct 2026 06:15:00 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id BD96237ED6; Wed, 14 Oct 2026 03:14:33 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 961723CA483; Wed, 14 Oct 2026 03:14:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=jonsimons.org header.i=@jonsimons.org header.b="D9x/AUXg" X-Received: from smtp116.iad3a.emailsrvr.com (smtp116.iad3a.emailsrvr.com [173.203.187.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97C713C76BE for <git@vger.kernel.org>; Wed, 14 Oct 2026 03:14:20 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.203.187.116 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791947662; cv=none; b=JUaXKgMl3kFO9cLwaD0RJkh9zxQE56RB2fmJXoFpyOmc+AxTOmKayYkkTUtZI7pHgcjuouQ6X85d9WSoTIdWI1rgQFcFqlJWd5sRUqFJDjGx7xMCeObvlyam1bjyDE9fkDoh6QJVLCEGWQXCCkVVlULsY7zXGw5rlBUU3u0CztU= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791947662; c=relaxed/simple; bh=ORAwWrf52xXXQLFpfSKEmFWHeS4OCDV76yH9I46XlOc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BHCoUD4qjobsk9a4lrjvnBEkxJR7A9+4u/uDcx0u9Ur7UiexEl397oAwn9nu8VQXNXCx92ZsvT6aboM/IdPe6dikK2h1fV0rHVsyIDZANSIG8yMsFd4WiZrJTfyRQPAGindYnSjYv+S7T5jR5c89qkrEq745VvZBDWfYTBMAWZA= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jonsimons.org; spf=pass smtp.mailfrom=jonsimons.org; dkim=pass (1024-bit key) header.d=jonsimons.org header.i=@jonsimons.org header.b=D9x/AUXg; arc=none smtp.client-ip=173.203.187.116 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jonsimons.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jonsimons.org X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jonsimons.org; s=20200911-u7gnnm7o; t=1791947659; bh=ORAwWrf52xXXQLFpfSKEmFWHeS4OCDV76yH9I46XlOc=; h=From:To:Subject:Date:From; b=D9x/AUXgposP3W7oEhyFqclMEAniN58UDUiXm+f3bW0mS2EUnNhR1ss/BjeUH0PrQ oUJEXA1Fn45Bz1QJAfKll0CALv5eCyO6q3cOUVHrieaW7Zbg1cmBWXRRdymet+idkG yluFGllaUuwuDwH4euk5d3u+JvbrSN9r8EVsuKJ0= X-Auth-ID: jon@jonsimons.org X-Received: by smtp23.relay.iad3a.emailsrvr.com (Authenticated sender: jon-AT-jonsimons.org) with ESMTPSA id 7F71B2530F; Tue, 13 Oct 2026 23:14:19 -0400 (EDT) X-Cc: Jon Simons <jon@jonsimons.org> X-Mailer: git-send-email 2.55.0 X-In-Reply-To: <20261014031347.50433-1-jon@jonsimons.org> X-Precedence: bulk X-Mailing-List: git@vger.kernel.org X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org> X-Classification-ID: 20ae8d58-78b7-4215-81c6-d8119c94fa7d-11-1