]> git.notmuchmail.org Git - notmuch/blobdiff - performance-test/basic
test: initial performance testing infrastructure
[notmuch] / performance-test / basic
diff --git a/performance-test/basic b/performance-test/basic
new file mode 100755 (executable)
index 0000000..9d015ee
--- /dev/null
@@ -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