From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SPiqFJ6xwWIqcAAAbAwnHQ (envelope-from ) for ; Sun, 03 Jul 2022 17:11:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uHFxFJ6xwWI8cQAAauVa8A (envelope-from ) for ; Sun, 03 Jul 2022 17:11:26 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F181F1D3A9 for ; Sun, 3 Jul 2022 17:11:25 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id ECD555F404; Sun, 3 Jul 2022 15:11:15 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 3E19A5E021 for ; Sun, 3 Jul 2022 15:11:13 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 78A125FBD7; Sun, 3 Jul 2022 11:11:12 -0400 (EDT) Received: (nullmailer pid 1800791 invoked by uid 1000); Sun, 03 Jul 2022 15:11:09 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/4] perf-test: add tests for notmuch-git Date: Sun, 3 Jul 2022 12:11:01 -0300 Message-Id: <20220703151103.1800726-3-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220703151103.1800726-1-david@tethera.net> References: <20220703151103.1800726-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: TM7ERNMGA74VSPH2RSY6RDG6V6FSNKWX X-Message-ID-Hash: TM7ERNMGA74VSPH2RSY6RDG6V6FSNKWX X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656861086; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=8didg314ulVeRgu1gEb+/Pomt5uOBsFqOAZhkMlycl0=; b=rarAfwEZHXxPi26Upo1qLM8WY9Mfi2ViiFyt5PdnTrudd5gv/AMF1PnZY9Y8/sMmVlECKW lu29MAy5VI54Jy7QLaSSY3TpLxJH2XpMLVTEDqifmJ1IA2MTYvF0jcrPWFyGRkLD/G5t8e WhNs6v0Nmq6fzXhm6zdWwkK3dJMb/pGy0AN/5/PCrWdYXshPKA3gPUsvJZ2ZFRGjvYVEjE 2fjAmh6hsy27f4Ngg0D568O8bsvUPKG7z+2yTH+7sQ2g83XSxjvhfLum6OD3ROcz+O/pBc ZdpkVfob2OhY4clFnNcf+rL6ro90Qh4F2Z7B0DOVnKpVS+Kjr1Jb2PaV8Z+q4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656861086; a=rsa-sha256; cv=none; b=RbTrIuFcSj5hX6VE9Ko4Cll31zHgYPyxWK5s6146czFDKl3LYQBgUBS4mnZqIa8Hbg0y7s fIE8hC7IFOWp9Eyy7YGExtETrrOx8dJ7Lai/ctKtc5XXaj9DPhTILkAhNG59/6Fthd2B5I +B7XLn6pOUPCtGeZT11u+L2y6k4JoUxtC3emGJMoWwkKiqcKd2PJLk702a3CfFcz41+W1f hCT7XK3UOYMzvi4RysHfQtXYdSEAh8UHTHIYRAAUWQA4CdtgwpuXWKEbi0onrciTyFYK9Y hLzZEHpr2AFXP9NbqNLYiaeVGNRjd56H/6awlUAM39GMGG6I7TwSGfQCg3EXOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: F181F1D3A9 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: EIShA6hpbSZ3 The main focus of these initial tests is the (currently unacceptably slow) checkout performance. --- performance-test/T07-git.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 performance-test/T07-git.sh diff --git a/performance-test/T07-git.sh b/performance-test/T07-git.sh new file mode 100755 index 00000000..11dfec05 --- /dev/null +++ b/performance-test/T07-git.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +test_description='notmuch-git' + +. $(dirname "$0")/perf-test-lib.sh || exit 1 + +time_start + +time_run 'init' "notmuch git init" + +time_run 'commit --force' "notmuch git commit --force" +time_run 'commit' "notmuch git -l error commit" +time_run 'commit' "notmuch git -l error commit" + +time_run 'checkout' "notmuch git checkout" + +time_run 'tag -inbox' "notmuch tag -inbox '*'" + +time_run 'checkout --force' "notmuch git checkout --force" + + + +time_done -- 2.35.2