]> git.cworth.org Git - notmuch/blob - performance-test/T06-emacs.sh
perf-test: emacs tagging
[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_done