diff options
| author | David Bremner <bremner@debian.org> | 2012-11-17 12:28:15 -0400 |
|---|---|---|
| committer | David Bremner <bremner@debian.org> | 2012-11-26 08:39:21 -0400 |
| commit | 7beeb8c88a014ecbc53d8241f10683b3c4c16228 (patch) | |
| tree | ccd4592417e741447cf97904bab1fd8888f78948 /performance-test/basic | |
| parent | 20b7e0ff2f12e612dee00efc6ff1634aae8172a4 (diff) | |
test: initial performance testing infrastructure
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
Diffstat (limited to 'performance-test/basic')
| -rwxr-xr-x | performance-test/basic | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/performance-test/basic b/performance-test/basic new file mode 100755 index 00000000..9d015eec --- /dev/null +++ b/performance-test/basic @@ -0,0 +1,15 @@ +#!/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 |
