From: David Bremner Date: Sat, 13 Jan 2018 12:46:21 +0000 (-0400) Subject: perf-test: add simple test for thread subqueries X-Git-Tag: 0.27_rc0~32 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=60fcec82d2a8041ba3ee9fc6413cd404659e38dc perf-test: add simple test for thread subqueries This is not a particularly sensible query, but thread:{date:2010} is a good way to generate fairly large intermediate queries. --- diff --git a/performance-test/T04-thread-subquery.sh b/performance-test/T04-thread-subquery.sh new file mode 100755 index 00000000..665d5a64 --- /dev/null +++ b/performance-test/T04-thread-subquery.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +test_description='thread subqueries' + +. $(dirname "$0")/perf-test-lib.sh || exit 1 + +time_start + +time_run "search thread:{} ..." "notmuch search thread:{date:2010} and thread:{from:linus}" +time_run "search thread:{} ..." "notmuch search thread:{date:2010} and thread:{from:linus}" +time_run "search thread:{} ..." "notmuch search thread:{date:2010} and thread:{from:linus}" + +time_done