From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 6B9476DE0B2F for ; Sat, 5 May 2018 09:05:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J8SamZ4ZvqIM for ; Sat, 5 May 2018 09:05:38 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 7F6236DE0AE5 for ; Sat, 5 May 2018 09:05:33 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fEzgi-0007lx-L1; Sat, 05 May 2018 12:05:32 -0400 Received: (nullmailer pid 9814 invoked by uid 1000); Sat, 05 May 2018 16:05:26 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/4] perf-test: add simple test for thread subqueries Date: Sat, 5 May 2018 13:05:21 -0300 Message-Id: <20180505160523.9749-3-david@tethera.net> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180505160523.9749-1-david@tethera.net> References: <20180505160523.9749-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2018 16:05:39 -0000 This is not a particularly sensible query, but thread:{date:2010} is a good way to generate fairly large intermediate queries. --- performance-test/T04-thread-subquery.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 performance-test/T04-thread-subquery.sh diff --git a/performance-test/T04-thread-subquery.sh b/performance-test/T04-thread-subquery.sh new file mode 100755 index 00000000..665d5a64 --- /dev/null +++ b/performance-test/T04-thread-subquery.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +test_description='thread subqueries' + +. $(dirname "$0")/perf-test-lib.sh || exit 1 + +time_start + +time_run "search thread:{} ..." "notmuch search thread:{date:2010} and thread:{from:linus}" +time_run "search thread:{} ..." "notmuch search thread:{date:2010} and thread:{from:linus}" +time_run "search thread:{} ..." "notmuch search thread:{date:2010} and thread:{from:linus}" + +time_done -- 2.17.0