unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob ce04ca17794359a212f3c33266d6a3b0380849a4 565 bytes (raw)
name: performance-test/T06-emacs.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
#!/usr/bin/env bash

test_description='emacs operations'

. $(dirname "$0")/perf-test-lib.sh || exit 1
. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1

test_require_emacs

time_start

print_emacs_header

MSGS=$(notmuch search --output=messages "*" | shuf -n 50 | awk '{printf " \"%s\"",$1}')

time_emacs "tag messages" \
"(dolist (msg (list $MSGS))
   (notmuch-tag msg (list \"+test\"))
   (notmuch-tag msg (list \"-test\"))))"

time_emacs "show thread" \
	   '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")'

time_done

debug log:

solving ce04ca17 ...
found ce04ca17 in https://yhetil.org/notmuch/20220605170851.1595387-2-david@tethera.net/
found 66f0be58 in https://yhetil.org/notmuch.git/
preparing index
index prepared:
100755 66f0be589cad55364cf49051073707ff519559b6	performance-test/T06-emacs.sh

applying [1/1] https://yhetil.org/notmuch/20220605170851.1595387-2-david@tethera.net/
diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh
index 66f0be58..ce04ca17 100755

Checking patch performance-test/T06-emacs.sh...
Applied patch performance-test/T06-emacs.sh cleanly.

index at:
100755 ce04ca17794359a212f3c33266d6a3b0380849a4	performance-test/T06-emacs.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).