From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8N8AESVTumLK2QAAbAwnHQ (envelope-from ) for ; Tue, 28 Jun 2022 03:02:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cAwEESVTumLt5wAA9RJhRA (envelope-from ) for ; Tue, 28 Jun 2022 03:02:29 +0200 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 EF7505A40 for ; Tue, 28 Jun 2022 03:02:28 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 482A95F028; Tue, 28 Jun 2022 01:02:20 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7AF645E221 for ; Tue, 28 Jun 2022 01:02:16 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E060C5FBD7; Mon, 27 Jun 2022 21:02:15 -0400 (EDT) Received: (nullmailer pid 1569341 invoked by uid 1000); Tue, 28 Jun 2022 01:02:13 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 1/5] perf-test/emacs: test showing longish threads Date: Mon, 27 Jun 2022 22:02:01 -0300 Message-Id: <20220628010205.1567784-2-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220628010205.1567784-1-david@tethera.net> References: <20220628010205.1567784-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: CSZICRSTUIDXGAZYYJAWX7ROUW637UXO X-Message-ID-Hash: CSZICRSTUIDXGAZYYJAWX7ROUW637UXO 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=1656378149; 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=CqYb/MWZvpo966CCqBN97LmHRb3lGao623744CoXEzM=; b=lxhAleYf3T/PoLjmZgrX2IR4DCESvr9nD0HquCjneFYBoQBIY1fK8TbqWmP3r3p39xZHs2 A3u3LKhp08vsx01AYYIz9lFxoWWjaqVEaPx5tn2MZmM0l+BHHFk6b7xd8bHpoFbvvLDDL/ HvtlSSOsY/HFWJaxqCEXVt17dtpFvGRVoLH7u2/OTcnNbYaTkkZ0bWbOS+2KAEtD7D46J3 2RUQyDFv4ArHraP6OwHihkqG5mxUdtnfGRY9J5CnqqWS9ZEhVyZ+NEtZHexkOcns6g9O5V CgVORDNOK4abwFJTUtQMaxdaG3UpigbGrAjF8asDTIMMhZgnBkMsyWR8W21IKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656378149; a=rsa-sha256; cv=none; b=IFTwZefSpMDM4XMWsD3QqQr0Jd/q9j+mg3zGFBnVSiSHF0wFuGBu1ekYhdeH85Y+H3I2jz h+xKm4ijtdk1Yx0OtKdqJu63IJDqvIP3KousENbPFgNIvhLiWJ3ISoD1Ki4tIlpbj3WkVe /XKqfmXwaqI8R/bA1G0vSUBM50VI4EBeaLWkN3JL0T0b2CKU14NTrd3MSQ589wnD0M2Prc pavLY6FQOIRqt28Qf+z7Mvdak3Koo8nZ8n4wMZ7iO8k5adUgzZ0y8JnioZDjf3nrIcOfE1 ftzNtqkiyPj2hFdb1tOfnp8/WR7udlFlYU7CQgvdoJ6p4TEuZavqU81skzZmtg== 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: -0.17 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: EF7505A40 X-Spam-Score: -0.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: f7hFoTnDvhEt This particular thread takes about 100 times longer to display in emacs than on the command line. The parameter notmuch-show-max-text-part-size exists, but is currently ineffective for this task because it only hides attachments, not part 0. In future commits, the parameter notmuch-show-{depth,height}-limit will trigger a similar kind of hiding for bodies as n-s-m-text-part-size already does for attachments. --- performance-test/T06-emacs.sh | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh index 66f0be58..c92bbd66 100755 --- a/performance-test/T06-emacs.sh +++ b/performance-test/T06-emacs.sh @@ -18,4 +18,67 @@ time_emacs "tag messages" \ (notmuch-tag msg (list \"+test\")) (notmuch-tag msg (list \"-test\"))))" +time_emacs "show warmup" \ + '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")' + +time_emacs "show thread #1" \ + '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")' + +time_emacs "depth bound #1" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))' + +time_emacs "height bound #1" \ + '(let ((notmuch-show-height-limit -1)) + (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))' + +time_emacs "size bound #1" \ + '(let ((notmuch-show-max-text-part-size 1)) + (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))' + +time_emacs "show thread #2" \ + '(notmuch-show "thread:{id:20101208005731.943729010@clark.site}")' + +time_emacs "depth bound #2" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))' + +time_emacs "height bound #2" \ + '(let ((notmuch-show-height-limit -1)) + (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))' + +time_emacs "size bound #2" \ + '(let ((notmuch-show-max-text-part-size 1)) + (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))' + +time_emacs "show thread #3" \ + '(notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}")' + +time_emacs "depth bound #3" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))' + +time_emacs "height bound #3" \ + '(let ((notmuch-show-height-limit -1)) + (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))' + +time_emacs "size bound #3" \ + '(let ((notmuch-show-max-text-part-size 1)) + (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))' + +time_emacs "show thread #4" \ + '(notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}")' + +time_emacs "depth bound #4" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))' + +time_emacs "height bound #4" \ + '(let ((notmuch-show-height-limit -1)) + (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))' + +time_emacs "size bound #4" \ + '(let ((notmuch-show-max-text-part-size 1)) + (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))' + time_done -- 2.35.2