* [PATCH] perf-test/tag: add maildir sync tests
@ 2023-09-30 11:40 David Bremner
2024-04-05 11:52 ` David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: David Bremner @ 2023-09-30 11:40 UTC (permalink / raw)
To: notmuch
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.
---
performance-test/T02-tag.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/performance-test/T02-tag.sh b/performance-test/T02-tag.sh
index 9c895d6a..47fdb0c2 100755
--- a/performance-test/T02-tag.sh
+++ b/performance-test/T02-tag.sh
@@ -11,4 +11,13 @@ 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
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] perf-test/tag: add maildir sync tests
2023-09-30 11:40 [PATCH] perf-test/tag: add maildir sync tests David Bremner
@ 2024-04-05 11:52 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2024-04-05 11:52 UTC (permalink / raw)
To: notmuch
David Bremner <david@tethera.net> writes:
> 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.
Applied to master.
d
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-05 11:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-30 11:40 [PATCH] perf-test/tag: add maildir sync tests David Bremner
2024-04-05 11:52 ` David Bremner
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).