notmuch/performance-test/M06-insert.sh
David Bremner 49d4f52f27 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
2017-08-20 08:48:43 -03:00

16 lines
296 B
Bash
Executable file

#!/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