mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 05:34:11 +01:00
de23409704
Today someone asked me the (reasonable) question of how much performance impact there is from synching tags to maildir flags. It turns out it is noticeable, about a 50% overhead compared to non-synched tags (according to these tests). In practice I don't know if it's a big problem for users, since I don't know what fraction of tagging operations involve "special" tags.
23 lines
817 B
Bash
Executable file
23 lines
817 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
test_description='tagging'
|
|
|
|
. $(dirname "$0")/perf-test-lib.sh || exit 1
|
|
|
|
time_start
|
|
|
|
time_run 'tag * +new_tag' "notmuch tag +new_tag '*'"
|
|
time_run 'tag * +existing_tag' "notmuch tag +new_tag '*'"
|
|
time_run 'tag * -existing_tag' "notmuch tag -new_tag '*'"
|
|
time_run 'tag * -missing_tag' "notmuch tag -new_tag '*'"
|
|
|
|
time_run 'tag * +maildir_flag F' "notmuch tag +flagged '*'"
|
|
time_run 'tag * -maildir_flag F' "notmuch tag -flagged '*'"
|
|
time_run 'tag * +maildir_flag P' "notmuch tag +passed '*'"
|
|
time_run 'tag * -maildir_flag P' "notmuch tag -passed '*'"
|
|
time_run 'tag * +maildir_flag D' "notmuch tag +draft '*'"
|
|
time_run 'tag * -maildir_flag D' "notmuch tag -draft '*'"
|
|
time_run 'tag * +maildir_flag S' "notmuch tag -unread '*'"
|
|
time_run 'tag * -maildir_flag S' "notmuch tag +unread '*'"
|
|
|
|
time_done
|