From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MBOFMrrn+2HUHwEAgWs5BA (envelope-from ) for ; Thu, 03 Feb 2022 15:33:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kME8K7rn+2HPDAAAG6o9tA (envelope-from ) for ; Thu, 03 Feb 2022 15:33:30 +0100 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 7F0473A1DD for ; Thu, 3 Feb 2022 15:33:30 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3A2125F71D; Thu, 3 Feb 2022 14:33:07 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id C28925F70D for ; Thu, 3 Feb 2022 14:33:03 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id DB5BA5FBD4; Thu, 3 Feb 2022 09:33:02 -0500 (EST) Received: (nullmailer pid 3348409 invoked by uid 1000); Thu, 03 Feb 2022 14:32:56 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [RFC PATCH v2 06/12] perf-test: emacs tagging Date: Thu, 3 Feb 2022 10:32:48 -0400 Message-Id: <20220203143254.3344753-7-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203143254.3344753-1-david@tethera.net> References: <20220203143254.3344753-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: TS7MSFNPEXDVAXMAVBVIKTFFZ4RMEVOB X-Message-ID-Hash: TS7MSFNPEXDVAXMAVBVIKTFFZ4RMEVOB 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643898810; 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=Y/bMkmdgYW14b1KEcQtoXXtn5QTocAWH5EHCc4lphME=; b=M96xCsu/tbG8EoTy/5/RroTJS8US3GXHQQbKJ0KxiawH12LCQCXRh8l1Tlefpp5LjLJXen hkDHHQwV24f1elVjkqvqhn8FuMfJ7Dc3ROXid5fUfkJYEdMQY1ScndL/yZ2szFwzgr5SeS MjyUq2vRFCmMsWmCJOvf+olmqg2sIpfvef9sV0GJ3d1YB05LPURB+wCMSy/+Blh/yJBl4T dEA3KI0Heal5+npmfcgSDs9/K0W5lZ92OMco5S+/ILqbhgrgab6NsCZdCjSdzOoJUIijJC fhCjS2i9XZnwaNHsw5L1v9787PJznuGVPIby7nzkeZp2DqVungZ5ZQyDQGqcKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643898810; a=rsa-sha256; cv=none; b=RCAXhOdqd9qwKxqj8p4aD6uW7vbYSlOlQ+6xPEuMjGiV9Iip+z67nBvLOz9fX3V96Zhksl duF9KtrEXd6a4CM248v+M8LSJYIUXZqSK7XS6rSXHWoe4Q0L8ZQwhVmIr5OH34IhQUfIHe I+7uJNam9UVL+9KOLemuLhBwKEbMYeNG2fxCc4qJRwMCrtHacTKAP3bvHok+PAZ18810oy nHyn322rLefxPW4JEeSd5jiQmz5ckg1baeEpcQQ5qZtVyNe2N7oat1M6P4C5Xt7W14mkKV OpINma6nwb9UF0kEFmmHvRYr+qeOkQ8LHaJcEG81hIsczgO5pyNFJ//ZnHqTbw== 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.35 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: 7F0473A1DD X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: mAedlgh6cPN+ Time tag operations, to see if it is worthwhile keeping both the batch and the non-batch calls to notmuch tag. --- performance-test/T06-emacs.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 performance-test/T06-emacs.sh diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh new file mode 100755 index 00000000..66f0be58 --- /dev/null +++ b/performance-test/T06-emacs.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +test_description='emacs operations' + +. $(dirname "$0")/perf-test-lib.sh || exit 1 +. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1 + +test_require_emacs + +time_start + +print_emacs_header + +MSGS=$(notmuch search --output=messages "*" | shuf -n 50 | awk '{printf " \"%s\"",$1}') + +time_emacs "tag messages" \ +"(dolist (msg (list $MSGS)) + (notmuch-tag msg (list \"+test\")) + (notmuch-tag msg (list \"-test\"))))" + +time_done -- 2.34.1