From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cE20H5xQdmBUjAAAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 04:17:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4MeJGZxQdmBpRAAAB5/wlQ (envelope-from ) for ; Wed, 14 Apr 2021 02:17:00 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CAA2B1DB49 for ; Wed, 14 Apr 2021 04:16:59 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1CFD627182; Tue, 13 Apr 2021 22:16:40 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 8AF552717B for ; Tue, 13 Apr 2021 22:16:34 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 4CFBB5FAA9; Tue, 13 Apr 2021 22:16:34 -0400 (EDT) Received: (nullmailer pid 1236637 invoked by uid 1000); Wed, 14 Apr 2021 02:16:30 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 1/2] WIP: add performance test for removing files. Date: Tue, 13 Apr 2021 23:16:26 -0300 Message-Id: <20210414021627.1236560-2-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210414021627.1236560-1-david@tethera.net> References: <20210414021627.1236560-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: CPCNGQ43NVWYB3KXFI6TQBRAZFH6LNQ6 X-Message-ID-Hash: CPCNGQ43NVWYB3KXFI6TQBRAZFH6LNQ6 X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618366619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=HfpuXfES1GciBkiKgo1RyE34uVa0ElhlgpcarPtV0MI=; b=Rf+KtecxOydD/o5gPvodSZUYpMn+Ne7FkVSUvg3yypMc7IpQT3t+fnVCcdBHgUUy8MTCW5 tN3mg7SwLtyA9p0v5FxBmPU52MR1c7RZkEHJmmyn9ZSLkWS/Su33dCgxR0e2goPILMhNWD LObX74l4aMheq5pBIDUp40/P+lteD39HSmv0J1xC3Y/9yltHYd7NGhWOMSn2ORHPfQ4lxW DNCsXiTxBcR4LVtfMWhYCHF6+xvGPuhWpI3wH7g9KFqOMOv1ulSzQKqfRoiv+1s9F03eTj YM7clQrlP17m+Kr1B8lVVGRks4Ur2+QY+QspGsBYLaE6jhLbVrEocYw+uVZV0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618366619; a=rsa-sha256; cv=none; b=huFA1q4EmRfLDIaEaNKgeetBsbVejqX26P5SO0Jb1woApBtIYrmy55DHQ68+Z7Q3cRB6/i aSvVwGKEKagN4vewHWEkZyo9DES9lCKAeuq4h6tb3pF4mbeESLmEVohmNrNVMX31kzagnV gmK5aC1GlUEJONMzhTMS7UB56Q795U58B4k4NTZazDRTVsjig6Gn1miUqfadmW8gZ2YJ+c HxnPoFEaP/6yybQDpcwXbIzZ9+hqnUL3BSdxYk/YTl6AlqgJjsamlhtYRM4yCAPPRlA8uU bk3iwrYMFuvIuQzAz2Qry/7sdZxVJNTHoRy4A+aVT7ZVqzKTVHIDoepPGWBHOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.00 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: CAA2B1DB49 X-Spam-Score: 1.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: hpQIGDgC7rY2 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