3 test_description='emacs operations'
5 . $(dirname "$0")/perf-test-lib.sh || exit 1
6 . $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
14 MSGS=$(notmuch search --output=messages "*" | shuf -n 50 | awk '{printf " \"%s\"",$1}')
16 time_emacs "tag messages" \
17 "(dolist (msg (list $MSGS))
18 (notmuch-tag msg (list \"+test\"))
19 (notmuch-tag msg (list \"-test\"))))"
21 time_emacs "show warmup" \
22 '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")'
24 time_emacs "show thread #1" \
25 '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")'
27 time_emacs "depth bound #1" \
28 '(let ((notmuch-show-depth-limit 0))
29 (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))'
31 time_emacs "height bound #1" \
32 '(let ((notmuch-show-height-limit -1))
33 (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))'
35 time_emacs "size bound #1" \
36 '(let ((notmuch-show-max-text-part-size 1))
37 (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))'
39 time_emacs "show thread #2" \
40 '(notmuch-show "thread:{id:20101208005731.943729010@clark.site}")'
42 time_emacs "depth bound #2" \
43 '(let ((notmuch-show-depth-limit 0))
44 (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))'
46 time_emacs "height bound #2" \
47 '(let ((notmuch-show-height-limit -1))
48 (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))'
50 time_emacs "size bound #2" \
51 '(let ((notmuch-show-max-text-part-size 1))
52 (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))'
54 time_emacs "show thread #3" \
55 '(notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}")'
57 time_emacs "depth bound #3" \
58 '(let ((notmuch-show-depth-limit 0))
59 (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))'
61 time_emacs "height bound #3" \
62 '(let ((notmuch-show-height-limit -1))
63 (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))'
65 time_emacs "size bound #3" \
66 '(let ((notmuch-show-max-text-part-size 1))
67 (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))'
69 time_emacs "show thread #4" \
70 '(notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}")'
72 time_emacs "depth bound #4" \
73 '(let ((notmuch-show-depth-limit 0))
74 (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))'
76 time_emacs "height bound #4" \
77 '(let ((notmuch-show-height-limit -1))
78 (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))'
80 time_emacs "size bound #4" \
81 '(let ((notmuch-show-max-text-part-size 1))
82 (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))'