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 E29AC6DE0BF6 for ; Fri, 18 Aug 2017 16:50:18 -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 Lr3ZJt0otlTL for ; Fri, 18 Aug 2017 16:50:18 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 5442E6DE0AD1 for ; Fri, 18 Aug 2017 16:50:18 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1diqyS-00030G-Vy; Fri, 18 Aug 2017 19:46:45 -0400 Received: (nullmailer pid 29633 invoked by uid 1000); Fri, 18 Aug 2017 23:50:14 -0000 From: David Bremner To: notmuch@notmuchmail.org, notmuch@freelists.org Subject: [PATCH 3/3] perf-test: add memory test for notmuch-insert Date: Fri, 18 Aug 2017 20:50:06 -0300 Message-Id: <20170818235006.29566-4-david@tethera.net> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170818235006.29566-1-david@tethera.net> References: <20170818235006.29566-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: Fri, 18 Aug 2017 23:50:19 -0000 In the future it might be worthwhile selecting corpus messages to insert, but that seems a bit overcomplicated for now --- performance-test/M06-insert.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 performance-test/M06-insert.sh diff --git a/performance-test/M06-insert.sh b/performance-test/M06-insert.sh new file mode 100755 index 00000000..9bca199e --- /dev/null +++ b/performance-test/M06-insert.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +test_description='search' + +. ./perf-test-lib.sh || exit 1 + +memory_start + +mkdir -p "$MAIL_DIR"/{cur,new,tmp} + +for count in $(seq 1 20); do + generate_message "[file]=\"insert-$count\"" "[dir]='tmp/'" + memory_run "insert $count" "notmuch insert < $gen_msg_filename" +done + +memory_done -- 2.14.1