mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
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:
parent
6da87a1369
commit
49d4f52f27
1 changed files with 16 additions and 0 deletions
16
performance-test/M06-insert.sh
Executable file
16
performance-test/M06-insert.sh
Executable 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
|
Loading…
Reference in a new issue