notmuch/performance-test/basic
David Bremner ceaf5ca6c0 perf-test: add caching of xapian database
The caching and uncaching seem to be necessarily manual, as timing the
initial notmuch new is one of our goals with this suite.
2012-12-15 08:17:58 -04:00

20 lines
349 B
Bash
Executable file

#!/bin/bash
. ./perf-test-lib.sh
uncache_database
add_email_corpus
print_header
time_run 'initial notmuch new' 'notmuch new'
cache_database
time_run 'second notmuch new' 'notmuch new'
time_run 'dump *' 'notmuch dump > tags.out'
time_run 'restore *' 'notmuch restore < tags.out'
time_run 'tag * +new_tag' "notmuch tag +new_tag '*'"
time_done