]> git.notmuchmail.org Git - notmuch/blob - performance-test/T06-emacs.sh
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / performance-test / T06-emacs.sh
1 #!/usr/bin/env bash
2
3 test_description='emacs operations'
4
5 . $(dirname "$0")/perf-test-lib.sh || exit 1
6 . $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
7
8 test_require_emacs
9
10 time_start
11
12 print_emacs_header
13
14 MSGS=$(notmuch search --output=messages "*" | shuf -n 50 | awk '{printf " \"%s\"",$1}')
15
16 time_emacs "tag messages" \
17 "(dolist (msg (list $MSGS))
18    (notmuch-tag msg (list \"+test\"))
19    (notmuch-tag msg (list \"-test\"))))"
20
21 time_emacs "show warmup" \
22            '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")'
23
24 time_emacs "show thread #1" \
25            '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")'
26
27 time_emacs "depth bound #1" \
28            '(let ((notmuch-show-depth-limit 0))
29                 (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))'
30
31 time_emacs "height bound #1" \
32            '(let ((notmuch-show-height-limit -1))
33                 (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))'
34
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}"))'
38
39 time_emacs "show thread #2" \
40            '(notmuch-show "thread:{id:20101208005731.943729010@clark.site}")'
41
42 time_emacs "depth bound #2" \
43            '(let ((notmuch-show-depth-limit 0))
44                 (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))'
45
46 time_emacs "height bound #2" \
47            '(let ((notmuch-show-height-limit -1))
48                 (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))'
49
50 time_emacs "size bound #2" \
51            '(let ((notmuch-show-max-text-part-size 1))
52                 (notmuch-show "thread:{id:20101208005731.943729010@clark.site}"))'
53
54 time_emacs "show thread #3" \
55            '(notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}")'
56
57 time_emacs "depth bound #3" \
58            '(let ((notmuch-show-depth-limit 0))
59                 (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))'
60
61 time_emacs "height bound #3" \
62            '(let ((notmuch-show-height-limit -1))
63                 (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))'
64
65 time_emacs "size bound #3" \
66            '(let ((notmuch-show-max-text-part-size 1))
67                 (notmuch-show "thread:{id:20120109014938.GE20796@mit.edu}"))'
68
69 time_emacs "show thread #4" \
70            '(notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}")'
71
72 time_emacs "depth bound #4" \
73            '(let ((notmuch-show-depth-limit 0))
74                 (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))'
75
76 time_emacs "height bound #4" \
77            '(let ((notmuch-show-height-limit -1))
78                 (notmuch-show "thread:{id:1280704593.25620.48.camel@mulgrave.site}"))'
79
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}"))'
83
84 time_done