[PATCH 1/2] WIP: add performance test for removing files.

Subject: [PATCH 1/2] WIP: add performance test for removing files.

Date: Tue, 13 Apr 2021 23:16:26 -0300

To: notmuch@notmuchmail.org

Cc: David Bremner

From: David Bremner


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
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: