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.
This commit is contained in:
David Bremner 2018-01-13 08:46:21 -04:00
parent 5ad39ebf75
commit 60fcec82d2

View file

@ -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