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 2ACA26DE16CF for ; Sat, 18 Mar 2017 13:03:29 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, 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 dWZ2IjTA4eN5 for ; Sat, 18 Mar 2017 13:03:28 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id D4F6A6DE16C4 for ; Sat, 18 Mar 2017 13:03:27 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cpKYm-0001aM-MD; Sat, 18 Mar 2017 16:02:44 -0400 Received: (nullmailer pid 17530 invoked by uid 1000); Sat, 18 Mar 2017 20:03:25 -0000 From: David Bremner To: David Bremner , notmuch@notmuchmail.org Subject: [PATCH] perf-test/mem: add simple memory tests for notmuch search Date: Sat, 18 Mar 2017 17:03:20 -0300 Message-Id: <20170318200320.17488-1-david@tethera.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170318175038.15887-7-david@tethera.net> References: <20170318175038.15887-7-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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, 18 Mar 2017 20:03:29 -0000 Just copy and replace from the show tests. Currently these show no major leaks. --- performance-test/M03-search.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 performance-test/M03-search.sh diff --git a/performance-test/M03-search.sh b/performance-test/M03-search.sh new file mode 100755 index 00000000..8d026eee --- /dev/null +++ b/performance-test/M03-search.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +test_description='search' + +. ./perf-test-lib.sh || exit 1 + +memory_start + +memory_run 'search *' "notmuch search '*' 1>/dev/null" +memory_run 'search --format=json *' "notmuch search --format=json '*' 1>/dev/null" +memory_run 'search --format=sexp *' "notmuch search --format=sexp '*' 1>/dev/null" + +memory_done -- 2.11.0