From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ODMcN8CXeGEUdwEAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 02:05:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6O2hMsCXeGG4LgAAbx9fmQ (envelope-from ) for ; Wed, 27 Oct 2021 00:05:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F84416D58 for ; Wed, 27 Oct 2021 02:05:20 +0200 (CEST) Received: from localhost ([::1]:58094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfWRS-0007nR-9n for larch@yhetil.org; Tue, 26 Oct 2021 20:05:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfVgl-0007X4-0O for guix-patches@gnu.org; Tue, 26 Oct 2021 19:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfVgk-0008Ja-Op for guix-patches@gnu.org; Tue, 26 Oct 2021 19:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfVgk-0003v7-EO for guix-patches@gnu.org; Tue, 26 Oct 2021 19:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51198] [PATCH] gnu: Add b2sum. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Oct 2021 23:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51198 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Cc: 51198@debbugs.gnu.org Received: via spool by 51198-submit@debbugs.gnu.org id=B51198.163529019315023 (code B ref 51198); Tue, 26 Oct 2021 23:17:02 +0000 Received: (at 51198) by debbugs.gnu.org; 26 Oct 2021 23:16:33 +0000 Received: from localhost ([127.0.0.1]:47892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVgH-0003uF-6W for submit@debbugs.gnu.org; Tue, 26 Oct 2021 19:16:33 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVgF-0003ty-Go for 51198@debbugs.gnu.org; Tue, 26 Oct 2021 19:16:32 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DD00B5C01E0; Tue, 26 Oct 2021 19:16:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 26 Oct 2021 19:16:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=RpN9cFttsFaOJTOEDM2NIUb500/SDnYkx0TfOgsmkls=; b=oe5eTdrh2bgz gLmLuuOmWYwRNs1Xv5lpwa4p3H6ENJDnf6G27hGbgllcRidTDLvhpmMKDt0UgUks 4WNvf5qUyv39bMCOlqrxh7E/nC8Oh0LKK1uG9ojVMtECIh4m07Vhd88n0aKjSMLQ pWcPztVVQVRPmVHV4hvctmyFvf/XGeg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=RpN9cFttsFaOJTOEDM2NIUb500/SDnYkx0TfOgsmk ls=; b=hV2F4ea2/SpvJLXaf4BbQ4O5KHyMAtAahcoBpYMATG9/HVUrAWO5dJoGL 8FLHfvo2W0I1oUbtLYxc6JVexgObeqOJk5Z2QePN4rSH18Pe5jK2UdSjhLFQDOBF gyAoLVZY5aRhbQjgGIlLoPmyG8DO4DPaC2Q5WDsE10lLB3D3/KUWyUYUscPe1hNu WsyvIVEKIp8hZXNvPFtI6Yd/PyalDFXlRosL+DmIebV20gfqhlrc/s9iANlCsqAN sGBt+21vpdd+tVGq6oDHI+lmlKI3n9OJMMQfiC08unioMXBn6Ejwlgkr1xC1XIxi 3ssL/Ji7JSe+O4dmlaClTu4DyH67w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefledgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttddunecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeegieelteeuuedujeehfefhtddugf effeehuedtueevfefhhffffffgveeileduhfenucffohhmrghinhepghhnuhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghose hfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Oct 2021 19:16:24 -0400 (EDT) Date: Tue, 26 Oct 2021 19:16:22 -0400 From: Leo Famulari Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635293120; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RpN9cFttsFaOJTOEDM2NIUb500/SDnYkx0TfOgsmkls=; b=stAlMGvA9lb0LuckDz3KiJU4aqEVlFXjeqJsBrOgumMeJU2uKHqGUqxnoea7WS8q//Pl14 Utp/Mq5nxxT/whembwJICawEMqivWd91CglxtsVpk/qdnHsOZRcqHCM2KCC5cQRN2NSBnm o3ACtuk+IoHOXB3vPbEAGQxl0ieps0BtkvNrLXCDf4vD/VPXgqbR2yHSZJDokreZS9LNsb heT2MwqRXCoYM0OW0Zgm/E6u71OgOnj5zejT9sHZuAEbpB5VL2u0c4qHFSLwXmVTdPMcej ICLO4mANyXxA7M/KyVeRA/QnwY7tjSQkWZKqFufqnBBoGutNVJTlXqmDQhrJZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635293120; a=rsa-sha256; cv=none; b=l1/y4BOHNIciWoRToBQijivcrNEG0lE/lTSyUbQtMv6WIV0vcz6/DqByg51hLBFRKPpPlh JPrbW5nfK1CwKQvmC/n3HmdZt9vNkTlUjBQ1KgUTA3SoWG75uBwuSCeFUP9eK6j+6+UwSS 0hEX/Q+GcPlcH453HIVoTTs9QF0iwtoIGwjWMsifjkWJ1yGradpZnko0G9CF4U798JCwLk zfncmVgkANn8+Pjx7wvN9kmjiMQF+IJ4k9Qo7n6+T9gtM0tYIffsZYkjsAXGZWuwn6fIc8 4TJijuQay855ohKSYpvqkEOg6YGBFF/oZVXFy4RvD1uoIBT9jOW27lnbrYv+uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=oe5eTdrh; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=hV2F4ea2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=oe5eTdrh; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=hV2F4ea2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8F84416D58 X-Spam-Score: 0.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3xn+3eda92Zb On Wed, Oct 27, 2021 at 12:26:01AM +0200, Nicoḷ Balzarotti wrote: > (I'm on an old X200 thinkpad). Might it be that build is not > deterministic (and we should disable some optimization)? As a test, I replaced march=native with march=x86-64. My benchmark is hashing a ~7GB tree of files [0]. Once the files are cached by the kernel: "march=native": ~13 seconds "march=x86-64": ~20 seconds I wonder if some of the other values of -march are faster... Or maybe the package could use #:substitutable #f, since b2sum is a very quick build. Although BLAKE3 / b3sum [1] is radically faster, b2sum is nice because it's not in Rust, which is still suboptimal on Guix. With b3sum, my benchmark takes less than 2 seconds! [0] `LC_ALL=C; find "$1" -type f -print0 | sort -z | xargs -0 b2sum | time b2sum` [1] https://bugs.gnu.org/51289