aboutsummaryrefslogtreecommitdiffhomepage
path: root/performance-test/02-tag
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-12-05 21:34:30 -0400
committerGravatar David Bremner <bremner@debian.org>2012-12-15 08:29:08 -0400
commit51b0f8ff3373fe744691b4836f4ee85919e3ec4a (patch)
tree9545ebb97a69f1c3eab501299dbbaa7e39b6dc46 /performance-test/02-tag
parent5c35791d7cf7279024befc98e9d973af461336a3 (diff)
perf-test: split basic into 00-new, 01-dump-restore, and 02-tag
We use the new "time_start" function to restore the database from cache if possible.
Diffstat (limited to 'performance-test/02-tag')
-rwxr-xr-xperformance-test/02-tag14
1 files changed, 14 insertions, 0 deletions
diff --git a/performance-test/02-tag b/performance-test/02-tag
new file mode 100755
index 00000000..78cecccc
--- /dev/null
+++ b/performance-test/02-tag
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+test_description='tagging'
+
+. ./perf-test-lib.sh
+
+time_start
+
+time_run 'tag * +new_tag' "notmuch tag +new_tag '*'"
+time_run 'tag * +existing_tag' "notmuch tag +new_tag '*'"
+time_run 'tag * -existing_tag' "notmuch tag -new_tag '*'"
+time_run 'tag * -missing_tag' "notmuch tag -new_tag '*'"
+
+time_done