From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EMmdC4t8eWAZ1AAAgWs5BA (envelope-from ) for ; Fri, 16 Apr 2021 14:01:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ML+mBYt8eWDGdAAA1q6Kng (envelope-from ) for ; Fri, 16 Apr 2021 12:01:15 +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 AA554209F8 for ; Fri, 16 Apr 2021 14:01:14 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D941B2718F; Fri, 16 Apr 2021 08:00:52 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id B5B9E1FBD2 for ; Fri, 16 Apr 2021 08:00:46 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id ACBD65FA96; Fri, 16 Apr 2021 08:00:46 -0400 (EDT) Received: (nullmailer pid 531625 invoked by uid 1000); Fri, 16 Apr 2021 12:00:43 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 1/2] perf-tests: add test for removing files. Date: Fri, 16 Apr 2021 09:00:38 -0300 Message-Id: <20210416120039.531533-2-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210416120039.531533-1-david@tethera.net> References: <20210416120039.531533-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: GSZXN6AIVTWJESSACDILLW3MAZOQVXE2 X-Message-ID-Hash: GSZXN6AIVTWJESSACDILLW3MAZOQVXE2 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=1618574474; 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=MiHqFPMLMHXJKjHV7E1rXWxFxWXP3Z2mFn/I54ajGTQ=; b=Ia4Q8PYu1A3YaEBSJzyRwbpnRBhjV3gl7BoSXNl2Ib+tOufSB8Rysqq98bqmemprJyhYb6 OzLuQ6SFtXHi09hgzY8mlFpFgGmEYmXtc9TdTYHUjg3t/rF0MigG/kwJZGW0V+GrzMXQi+ GLGan9qIEDNVPAB9M9nOwsBYzxe6chFFmKWodI+kYS65zEHtItXmCnU7g8f7VtR1X5qyH4 myV2HEDBAwsVBzd0bK4rSY3tgEQKYVGR30VAJUFfv2FJnx94jz/oOoZShCPhxIpLYUvFbc XTLsRgLlXtsRe0lsrqWXHFMnHOSbRuGHxGk19VlL3pj7hWw0S3+USqaBC7XOXQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618574474; a=rsa-sha256; cv=none; b=ss96Bofk/o6XUA/vNU0tO/9AaEYruZxNp8u2v177w0I0fRNqtWY8+0smc7VYffonUMtyHm sZ7vfbG6H+JI/ML5zEAEGWAWnfTf8OnZBAboqRxh2jTPlAgpuMrG0kbADD1NCfshn3Qa1C r0FhEmQjbFySQoD92nIwkmxuDGFgOUUod1lU7FQnp6M6IKqmwsaxqBVPhAiE9wz010CtPr huJ2aG8pEmKGY/X+ln28YuT3efAelrWFAuSDQlDuypBawsmlapgkTAZmv1JLVgj90Kbtsr +YuRfma5vHngmlffIVIbB8e1kV3oNiU24YV8esL+G/Lwvi362NepcBVFzRTcvQ== 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.03 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: AA554209F8 X-Spam-Score: -1.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: WYsPXkuFkVwV Without the proposed fix for deletion performance [1], this test is probably unreasonably slow compared to others at the same small/medium/large scale. [1]: id:20210414021627.1236560-3-david@tethera.net --- 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..53de1c27 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' +xargs tar cf backup.tar < $manifest + +perl -nle 'unlink $_; unlink $_.copy' $manifest + +time_run "new ($count rm)" 'notmuch new' + +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