From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AHiLJA3td2A3OQAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 09:36:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6IOEHg3td2D1NgAAbx9fmQ (envelope-from ) for ; Thu, 15 Apr 2021 07:36:45 +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) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 915001A00A for ; Thu, 15 Apr 2021 09:36:44 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3681026ACD; Thu, 15 Apr 2021 03:36:37 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 5F4991FBC9 for ; Thu, 15 Apr 2021 03:36:34 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 274941B001E8; Thu, 15 Apr 2021 10:36:31 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1618472191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=x+jtBO8DWrY801jj0rPbppMEFHYd/kMrm+SfkaWbaSI=; b=NXwXeDQJQ5qnzfKz3TggXMsb9tHNKmuqrUnBngD0UL9xfwuphIKmSoap/uvIFSDsSyK47/ a61M89rL/BxzS5naOD2SjOUsw1rBqp3gU/b0md23PlkzI6CA2dgqzwgFrRZmtZyxQDS7Jn Tvv5YqBApwCYmzvbc+CcwYctvBGlB9HCfmYwrOzpdyZ4/rQrX8yU4uUtydIRofNENc/4jk Ujzowi6A/4rIUjAhWUkPv2e1g629odc7LXVi1enAgvtwuZsE4Yom4DvZ0iutoNkHMJGP7P njkkh3pt3D9Fm+fxFkl1mB9uUugwKdOy6ohel02yowqSwBBSag184hgCDoFcug== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 1/2] WIP: add performance test for removing files. In-Reply-To: <20210414021627.1236560-2-david@tethera.net> References: <20210414021627.1236560-1-david@tethera.net> <20210414021627.1236560-2-david@tethera.net> User-Agent: Notmuch/0.31.4+128~gc67b63a (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1618472191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=x+jtBO8DWrY801jj0rPbppMEFHYd/kMrm+SfkaWbaSI=; b=cQM3qtJbFt3uNQCC1Ha9uaCWhrcd7x4AS3Cb4sTn5a9cWO0aL9xRP96QGMrsd/MgHKe5+M TuKJSGksB4c4Ax/rtESNkQy4DrwW4uxvo+PU1jnXxiXRve3HKbnSiOCHY/2wPs4OlvsYPI tx+W6keixAuaIGO7GuMOA5UW1oZBPITvirKLaSNJmhAtV6Watd7EWbbcxLMIA58oWG/qEj jJNaERoKlZLsnLLDDT7y/hjELSOhsAYkUTZMNk/bk8B1z9L2An0A3vpTtSe4Gw6OBvsA3o rgPxK6LGdbu26mIVNyel4NqrSSIOluCokca1MmkBPGJE6kBRdUptu+7SUWJjeQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1618472191; a=rsa-sha256; cv=none; b=vtom6ucUS5LMVwO2qQ5k+cFrsdBxJRBLJfYXjZJYxDktFBnOlUemnSwnz4opURCHvyaX3q Qrlyi9DASCfet76gDXYLFt3+iF+NNyyAojgD0ZpbpFAqPvdHVTj8/phz6a7Lxsmpk3FwN+ FMiX/Nr+vxWQJUql4xluqBQvuDvqDB7CL4Y3oHgsLenIANzC+GaWcYGbzkBbIwSkXmxd9d KYO0t1CLzu2s8rHF7fEHW6YJDcQJCU2kE1L+wOLL9fHhHzCWJ6CqTxCVozqiIjD1Z3p8qW mE/5021TPIF5UBjTz5hCtzzKHfv8mkNMjncHnXUnCTnY5LkR1hq4sFHjlPt7sQ== Message-ID-Hash: TXMTBDE227SSFNUI57RM4TBBWYCIGEZW X-Message-ID-Hash: TXMTBDE227SSFNUI57RM4TBBWYCIGEZW X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618472205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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:dkim-signature; bh=tr68tUxX8N3BggrF8vb9mrE2h/8aZfHi+8Ak+/tj7eM=; b=XbZ+8N7JCYDgoS4K2LRrPqv5CmfEmtdDujWFKqqE/OghcDmpz5AVOXopmvNuFsEYxjFxIr agnMfOZ0qSFcBZX50C7QQ6m6PmUKdk5bPRCnkODKBuAJx7Yh2l2VesyW+hlEcU3i9jmCxY QfKX0PPQ/XLlhbh1B770TiU+1JZJTkDXxAOAjDDDNiLaVdvAmRlwH/gQZKvxZnPplAjARk 8VGDEPjbFa2NmNVwk7NPc7p2d0/1TpcbwdZfDvWdyJxUK8fJqgFhn+50XMc9DeLbKr8s4q 0QH9w+EqZOrODp7CWG+qi3FGCMdycqHaIwo5gKkr0woWFF+jl2KWpzin+TCsUg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1618472205; a=rsa-sha256; cv=fail; b=WNyYZWBUP1yx5iByVon5NBwwnhPR5/VAoUH1qvZaNN8XcwnMGcu69I4fMLKo6Ndr5AAww8 yAkCKActFcFnVneluGvwl47Hm4i6FV96cXoab/42GGbtzI/aMuJBl1wK7IdWuFEP2zy+Gd 24D5+KS609pITZFem//NoqL99teVWNbMvsR/OIr03okwlOyApT1xD+A9njlQPLeeEn5gm1 5EAmoQIbP4Ve7zLdORKlgzfiUBv9N5IadvTDGMvqoe4fMdSF56ZDlzB8Q+dLVZfvCt/s0E C+gjoAaHnTQ64RZI8osm/pseptgHplmh6xuJ03YpBPMS/hn7mVY8erryEpqpFw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=NXwXeDQJ; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=NXwXeDQJ; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: 915001A00A X-Spam-Score: 1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: Kchyz/P432q3 On Tue, Apr 13 2021, David Bremner wrote: > No doubt this is non-portable use of tar. portable alternative(s) (?) (we probably can trust no file names start with '-') > --- > 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 xargs tar cf backup.tar < $manifest > +perl -nle 'unlink $_; unlink $_.copy' $manifest > + > +time_run "new ($count rm)" 'notmuch new' > + > +tar --extract --file backup.tar tar xf backup.tar > + > +time_run "new ($count restore)" 'notmuch new' > + > perl -nle 'link $_, "$_.copy"' $manifest > > time_run "new ($count cp)" 'notmuch new' > -- > 2.30.2