unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 66f0be589cad55364cf49051073707ff519559b6 442 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
 
#!/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_done

debug log:

solving 66f0be58 ...
found 66f0be58 in https://yhetil.org/notmuch.git/

(*) 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).