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 7DFAD6DE0361 for ; Sun, 21 May 2017 05:48:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[AWL=0.010, 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 knz2o6L-N5Hj for ; Sun, 21 May 2017 05:48:40 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 65D1B6DE00D2 for ; Sun, 21 May 2017 05:48:39 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1dCQGu-0003z0-1k; Sun, 21 May 2017 08:47:44 -0400 Received: (nullmailer pid 26685 invoked by uid 1000); Sun, 21 May 2017 12:48:37 -0000 From: David Bremner To: notmuch@notmuchmail.org, notmuch@freelists.org Subject: [PATCH 4/5] perf-test: add memory test for reply Date: Sun, 21 May 2017 09:48:20 -0300 Message-Id: <20170521124821.23924-5-david@tethera.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170521124821.23924-1-david@tethera.net> References: <20170521124821.23924-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Sun, 21 May 2017 12:48:40 -0000 Looking at the code for notmuch-reply, there seems to be several gmime related memory leaks. This test is supposed to help eliminate those. --- performance-test/M04-reply.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 performance-test/M04-reply.sh diff --git a/performance-test/M04-reply.sh b/performance-test/M04-reply.sh new file mode 100755 index 00000000..ca8a899b --- /dev/null +++ b/performance-test/M04-reply.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +test_description='search' + +. ./perf-test-lib.sh || exit 1 + +memory_start + +for id in $(notmuch search --output=messages '*' | shuf -n 5); do + memory_run "reply $id" "notmuch reply $id 1>/dev/null" + memory_run "reply --format=json $id" "notmuch reply --format=json $id 1>/dev/null" + memory_run "reply --format=sexp $id" "notmuch reply --format=sexp $id 1>/dev/null" +done + +memory_done -- 2.11.0