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 mJjqB4AYCGIqsQAAgWs5BA (envelope-from ) for ; Sat, 12 Feb 2022 21:28:48 +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 SN++AIAYCGJAGwAAG6o9tA (envelope-from ) for ; Sat, 12 Feb 2022 21:28:48 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 B84993A606 for ; Sat, 12 Feb 2022 21:28:47 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F343D5F734; Sat, 12 Feb 2022 20:28:39 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0C2D65F72D for ; Sat, 12 Feb 2022 20:28:36 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 812C85FBD6; Sat, 12 Feb 2022 15:28:36 -0500 (EST) Received: (nullmailer pid 2577357 invoked by uid 1000); Sat, 12 Feb 2022 20:27:56 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH v4 05/11] perf-test: emacs tagging Date: Sat, 12 Feb 2022 16:27:36 -0400 Message-Id: <20220212202742.2577237-6-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220212202742.2577237-1-david@tethera.net> References: <20220212202742.2577237-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: U6RWYZEXDO6WFIWWIPKSCDHOFQWF3OQE X-Message-ID-Hash: U6RWYZEXDO6WFIWWIPKSCDHOFQWF3OQE 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=1644697727; 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=uhAiDSScfkQqL0+6CKNCdzfGnE190ZXskT0uoOr3Vz6dP09YjW3LPDCYP8wfOBUwhTtwxO rtP7/ZLCMoJoHNcpEWHFfXcWXCHztD+jj3JlxY/6jM4gu4bqd3BdcBLxlND01j0RFVCfZL Zj3XTaBuIxS8y1qzljQvreh9GGfsB0NC598+vjOrsx3EzprbPbTmUSp6oz2d1XwO9uC74w yN7HaAbtVMJMTx1X07S1UZ2HcVJckVo1BQa9km5Df749qHUPLXwqdOLYfN1rUX2yX8gSlO qqVidRmheLkULXc4gAqO3FVe2Tm8jpJU+jKjm0f07NMB9tVd28aK+74pxe6gdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644697727; a=rsa-sha256; cv=none; b=Rhzsz+5INXh/tzvvhWncXayVEb7d/pW/en7wbpBs7CpIO6ATQFSVqXti/mNbeWw71QV4N6 T2h/69aebHH49OPX9Nk+N0YCDms5T6UOMgKHwqwJNEXM4dy9SPf35npFoia9opn77g+VUC qVu4eEMAjrdR0ShRIlOCnDJaInc25atWG3pa4oIX0iP2/zWBqA0QstdBwTRnZ4sHFZipY2 TuGyCUnuRRMBtI0y7NfW0MqNGrOEKX9yZl0FJChL7FDrVGZ26GhGYdH3XCMHSvTj9lXgiO t3LM/w6/UpOwRn8h0o2OTNCggVhkjRr7VK20O5ZJDpGJTGuxRaIncE1ORr6d4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B84993A606 X-Spam-Score: -2.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: JQ6gyGgqavbs 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