mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-23 01:44:52 +01:00
7beeb8c88a
This is not near as fancy as as the unit tests, on the theory that the code should typically be crashing when performance tuning. Nonetheless, there is plenty of room for improvement. Several more of the pieces of the test infrastructure (e.g. the option parsing) could be factored out into test/test-lib-common.sh
15 lines
314 B
Bash
Executable file
15 lines
314 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. ./perf-test-lib.sh
|
|
|
|
add_email_corpus
|
|
|
|
print_header
|
|
|
|
time_run 'initial notmuch new' 'notmuch new'
|
|
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
|