]> git.notmuchmail.org Git - notmuch/blob - performance-test/M06-insert.sh
9fcc2a0c9ff10b7232099f7996ea03ff4ca2ad45
[notmuch] / performance-test / M06-insert.sh
1 #!/bin/bash
2
3 test_description='search'
4
5 . ./perf-test-lib.sh || exit 1
6
7 memory_start
8
9 mkdir -p "$MAIL_DIR"/{cur,new,tmp}
10
11 for count in {1..20}; do
12     generate_message "[file]=\"insert-$count\"" "[dir]='tmp/'"
13     memory_run "insert $count" "notmuch insert < $gen_msg_filename"
14 done
15
16 memory_done