perf-test: add memory test for notmuch-insert

In the future it might be worthwhile selecting corpus messages to
insert, but that seems a bit overcomplicated for now
This commit is contained in:
David Bremner 2017-08-18 20:50:06 -03:00
parent 6da87a1369
commit 49d4f52f27

16
performance-test/M06-insert.sh Executable file
View file

@ -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 {1..20}; do
generate_message "[file]=\"insert-$count\"" "[dir]='tmp/'"
memory_run "insert $count" "notmuch insert < $gen_msg_filename"
done
memory_done