]> git.notmuchmail.org Git - notmuch/blob - performance-test/M01-dump-restore.sh
notmuch (0.27-2) unstable; urgency=medium
[notmuch] / performance-test / M01-dump-restore.sh
1 #!/bin/bash
2
3 test_description='dump and restore'
4
5 . $(dirname "$0")/perf-test-lib.sh || exit 1
6
7 memory_start
8
9 memory_run 'load nmbug tags' 'notmuch restore --accumulate --input=corpus.tags/nmbug.sup-dump'
10 memory_run 'dump *' 'notmuch dump --output=tags.sup'
11 memory_run 'restore *' 'notmuch restore --input=tags.sup'
12 memory_run 'dump --format=batch-tag *' 'notmuch dump --format=batch-tag --output=tags.bt'
13 memory_run 'restore --format=batch-tag *' 'notmuch restore --format=batch-tag --input=tags.bt'
14
15 memory_done