Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1D19A431FAF for ; Mon, 10 Dec 2012 20:31:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VJNV6WUCz+Mf for ; Mon, 10 Dec 2012 20:31:19 -0800 (PST) Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU [18.7.68.37]) by olra.theworths.org (Postfix) with ESMTP id 50760431FAE for ; Mon, 10 Dec 2012 20:31:19 -0800 (PST) X-AuditID: 12074425-b7f606d0000008ea-91-50c6b71612ad Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 4B.D8.02282.617B6C05; Mon, 10 Dec 2012 23:31:18 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qBB4VIlj005706; Mon, 10 Dec 2012 23:31:18 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qBB4VGAD020769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 10 Dec 2012 23:31:17 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80) (envelope-from ) id 1TiHUy-0003lp-9Y; Mon, 10 Dec 2012 23:31:16 -0500 From: Austin Clements To: david@tethera.net, notmuch@notmuchmail.org Subject: Re: [Patch v2 04/11] perf-test: optionally print description for each group of tests In-Reply-To: <1354762908-5788-5-git-send-email-david@tethera.net> References: <1354762908-5788-1-git-send-email-david@tethera.net> <1354762908-5788-5-git-send-email-david@tethera.net> User-Agent: Notmuch/0.14+159~g6895fee (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Mon, 10 Dec 2012 23:31:15 -0500 Message-ID: <87lid5nrak.fsf@awakening.csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpileLIzCtJLcpLzFFi42IRYrdT0RXbfizAYNlfa4uNy34yW9xo7Wa0 uH5zJrMDs8evtrnMHs9W3WL22HLoPXMAcxSXTUpqTmZZapG+XQJXxtE5U9gLzvJWzFn2j6mB 8QNXFyMnh4SAicSF5y/ZIWwxiQv31rN1MXJxCAnsY5SY+q+RCcLZwChx8cB5FgjnIpPEi1Mr oZwljBJXXk4B62cT0JdYsXYSaxcjB4eIgJ7Ewq0yIGFmATWJSWvOgJUIC8RKXFpxjhnE5hRw lGj+38oCYgsJlErc+dvOBNIqKhAvMfucD0iYRUBV4tbviUwgNi/Qpb+WXYSyBSVOznzCAjFe S+LGv5dMExgFZyFJzUKSWsDItIpRNiW3Sjc3MTOnODVZtzg5MS8vtUjXQi83s0QvNaV0EyM4 eF1UdzBOOKR0iFGAg1GJh7dC9ViAEGtiWXFl7iFGSQ4mJVFe3+VAIb6k/JTKjMTijPii0pzU 4kOMEhzMSiK8pblAOd6UxMqq1KJ8mJQ0B4uSOO+NlJv+QgLpiSWp2ampBalFMFkZDg4lCd75 24AaBYtS01Mr0jJzShDSTBycIMN5gIYHgNTwFhck5hZnpkPkTzHqcvT+63rCKMSSl5+XKiXO 2wVSJABSlFGaBzcHlnReMYoDvSXM+2UrUBUPMGHBTXoFtIQJaMlJwcMgS0oSEVJSDYxtl0rY jcpPZGXmm+RH8zy54DL7ytMbN42+X880eOVjuuqsGPvGEP5efffXd2xYGRuXfJu6NEjKTaPo 7xmbR0F+9VIiz/WX3Y1i5WE4Hb8qcfeX77/myHI9K0046rT/1E+9eVuW63d7F+q1nM84pMrN yfpV51LN4zcW0WE1Ar83NxyMfTn58yMlluKMREMt5qLiRACOC4p7FQMAAA== Cc: David Bremner X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Tue, 11 Dec 2012 04:31:20 -0000 On Wed, 05 Dec 2012, david@tethera.net wrote: > From: David Bremner > > Output from tests is indented slightly in the same style as the > correctness tests. > --- > performance-test/perf-test-lib.sh | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh > index e399d3f..415bf15 100644 > --- a/performance-test/perf-test-lib.sh > +++ b/performance-test/perf-test-lib.sh > @@ -67,12 +67,12 @@ add_email_corpus () > } > > print_header () { > - printf "[v%4s %6s] Wall(s)\tUsr(s)\tSys(s)\tRes(K)\tIn/Out(512B)\n" \ > + printf "[v%4s %6s] Wall(s)\tUsr(s)\tSys(s)\tRes(K)\tIn/Out(512B)\n" \ > ${PERFTEST_VERSION} ${corpus_size} > } > > time_run () { > - printf "%-22s" "$1" > + printf " %-22s" "$1" > if test "$verbose" != "t"; then exec 4>test.output 3>&4; fi > if ! eval >&3 "/usr/bin/time -f '%e\t%U\t%S\t%M\t%I/%O' $2" ; then > test_failure=$(($test_failure + 1)) > @@ -92,3 +92,8 @@ time_done () { > > cd -P "$test" || error "Cannot setup test environment" > test_failure=0 > + > +if [[ -n "test_description" ]]; then I think you meant "$test_description". Though, it seems like it would be confusing if $test_description wasn't set and there was no output. Maybe this shouldn't be conditional and below should be ${test_description:-UNNAMED} or something? > + echo > + echo $(basename "$0"): "Benchmarking ${test_description}" > +fi > -- > 1.7.10.4 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch