From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Cc: David Bremner <david@tethera.net>
Subject: [PATCH 1/2] WIP: add performance test for removing files.
Date: Tue, 13 Apr 2021 23:16:26 -0300 [thread overview]
Message-ID: <20210414021627.1236560-2-david@tethera.net> (raw)
In-Reply-To: <20210414021627.1236560-1-david@tethera.net>
No doubt this is non-portable use of tar.
---
performance-test/T00-new.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/performance-test/T00-new.sh b/performance-test/T00-new.sh
index a14dd13f..1eeac6d0 100755
--- a/performance-test/T00-new.sh
+++ b/performance-test/T00-new.sh
@@ -26,6 +26,16 @@ perl -nle 'rename "$_.renamed", $_' $manifest
time_run "new ($count mv back)" 'notmuch new'
+tar --create --file backup.tar --files-from=$manifest
+
+perl -nle 'unlink $_; unlink $_.copy' $manifest
+
+time_run "new ($count rm)" 'notmuch new'
+
+tar --extract --file backup.tar
+
+time_run "new ($count restore)" 'notmuch new'
+
perl -nle 'link $_, "$_.copy"' $manifest
time_run "new ($count cp)" 'notmuch new'
--
2.30.2
next prev parent reply other threads:[~2021-04-14 2:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-14 2:16 Deletion speed improvements for notmuch-new David Bremner
2021-04-14 2:16 ` David Bremner [this message]
2021-04-15 7:36 ` [PATCH 1/2] WIP: add performance test for removing files Tomi Ollila
2021-04-14 2:16 ` [PATCH 2/2] WIP: replace use of queries in n_m_delete with postlist access David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210414021627.1236560-2-david@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).