From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>,
notmuch@notmuchmail.org, notmuch@freelists.org
Subject: Re: [PATCH 3/3] perf-test: add memory test for notmuch-insert
Date: Sat, 19 Aug 2017 14:10:23 +0300 [thread overview]
Message-ID: <m2valjn78g.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <20170818235006.29566-4-david@tethera.net>
On Fri, Aug 18 2017, David Bremner wrote:
> 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
Since we use bash, {1..20} works. And IIRC some systems did not have
seq(1) (but some alternative).
LGTM (whole series) in any case.
Tomi
> + generate_message "[file]=\"insert-$count\"" "[dir]='tmp/'"
> + memory_run "insert $count" "notmuch insert < $gen_msg_filename"
> +done
> +
> +memory_done
> --
> 2.14.1
next prev parent reply other threads:[~2017-08-19 11:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-18 23:50 update performance tests for notmuch insert David Bremner
2017-08-18 23:50 ` [PATCH 1/3] test: move generate_message, add_message into test-lib-common.sh David Bremner
2017-08-18 23:50 ` [PATCH 2/3] perf-test: renumber tests David Bremner
2017-08-18 23:50 ` [PATCH 3/3] perf-test: add memory test for notmuch-insert David Bremner
2017-08-19 11:10 ` Tomi Ollila [this message]
2017-08-20 12:10 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2valjn78g.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=david@tethera.net \
--cc=notmuch@freelists.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).