Re: [Patch v2 04/11] perf-test: optionally print description for each group of tests
authorAustin Clements <aclements@csail.mit.edu>
Tue, 11 Dec 2012 04:31:15 +0000 (23:31 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:52:01 +0000 (09:52 -0800)
ef/313777f5988ea92609f710527a726350e5ee93 [new file with mode: 0644]

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