From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sB4sI8CysWKbfwEAbAwnHQ (envelope-from ) for ; Tue, 21 Jun 2022 14:00:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KC8mI8CysWIBPAEA9RJhRA (envelope-from ) for ; Tue, 21 Jun 2022 14:00:00 +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 4AA0C33D8E for ; Tue, 21 Jun 2022 14:00:00 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A0B7C5F6B6; Tue, 21 Jun 2022 11:59:46 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id D6C125F420 for ; Tue, 21 Jun 2022 11:59:42 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 083EA5FBD7; Tue, 21 Jun 2022 07:59:41 -0400 (EDT) Received: (nullmailer pid 407974 invoked by uid 1000); Tue, 21 Jun 2022 11:59:38 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [RFC PATCH v2 1/2] perf-test/emacs: test showing longish threads Date: Tue, 21 Jun 2022 08:59:32 -0300 Message-Id: <20220621115933.407563-2-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220621115933.407563-1-david@tethera.net> References: <20220621115933.407563-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: SJ2ZWIHLZU7ET6P4WJPTSKISVQT5F4SO X-Message-ID-Hash: SJ2ZWIHLZU7ET6P4WJPTSKISVQT5F4SO 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=1655812800; 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=NF227ZuuIXISewD2y0T7Pm+QZnPNnlZ4b+bQ7ruLnZ0=; b=or3Y6fsbQj/sxqQZ+zLMZ6Xu+nyxz09NqapBD/R0RyzxSGDJgJuoKVYPjxvXIoTIiQR9Zb urMiGS5DCznik5v7AuuekxwnBgiKOidslWaT6fEg6LGQjUyPD/rEGaiRQ2xsdqu8yKsR+r 2/GZ0XY+gmGe3WCzzuEgsMIpXhxd/ns3sNtvSGtteeRutRWJl3qhLEgMqUe6jSJRvf07Yr /+UPapjsh2ONU6K0zCni/l18is4yxTnMMnWV/4i0+H4E16tuUGgYGFq2kkaQOiTN/Dqekd dJCoHyCmcsVeKKetzlcroYan0DtHC3dOl0nezcmekBc8wSzgiXY7WCr8PH+yhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655812800; a=rsa-sha256; cv=none; b=KT6ZRe4/I9ufoS/VT235HiGOhvrLHjrd1iN2Ic0UGZAsf3+jcdozCVIlYVgYzaFQhtZ758 OBfZ1nJpiZJ13MmY4yeM6Udmp9j0JXcVcAkHTh1f63OGvdq2wPOqpdIZyHN+u+fEr/6IjH LaydQUi9RsUFZAJBsowdVneA/6+K+4WcrS6fGfdwyHnoyBbexlAcTUPL/5G+uRgVu+KkWj rcLj3OjB5b2r5wqIl6x6wZFiX/Sc7Ma5QroHtK+Yqd9ELZ2KKmFxoq/4SQjgUaPh2E/JaF oESUGHC/LL/qRkxbrz82sp3efq7bjLom4EqFsVSyVncIdcBxvZ1ZT5WhczFs4Q== 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.70 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: 4AA0C33D8E X-Spam-Score: -1.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: TZRECMpdKBvx This particular thread takes about 100 times longer to display in emacs than on the command line. In a future commit, the parameter notmuch-show-depth-limit will trigger lazy display of message bodies, which should improve performance (at the expense of extra clicks to view a message). --- performance-test/T06-emacs.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh index 66f0be58..09131b7a 100755 --- a/performance-test/T06-emacs.sh +++ b/performance-test/T06-emacs.sh @@ -18,4 +18,35 @@ 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 "lazy show #1" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))' + +time_emacs "show thread #2" \ + '(notmuch-show "thread:{id:20101208005731.943729010@clark.site}")' + +time_emacs "lazy show #2" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))' + +time_emacs "show thread #3" \ + '(notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}")' + +time_emacs "lazy show #3" \ + '(let ((notmuch-show-depth-limit 0)) + (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 "lazy show #4" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))' + time_done -- 2.35.2