From: Leo Famulari <leo@famulari.name>
To: "Nicolò Balzarotti" <anothersms@gmail.com>
Cc: 51198@debbugs.gnu.org
Subject: [bug#51198] [PATCH] gnu: Add b2sum.
Date: Tue, 26 Oct 2021 19:16:22 -0400 [thread overview]
Message-ID: <YXiMRvAiHuTfIDU5@jasmine.lan> (raw)
In-Reply-To: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me>
On Wed, Oct 27, 2021 at 12:26:01AM +0200, Nicolò 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
next prev parent reply other threads:[~2021-10-27 0:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-14 4:28 [bug#51198] [PATCH] gnu: Add b2sum Leo Famulari
2021-10-26 16:07 ` bug#51198: " Leo Famulari
2021-10-26 22:26 ` [bug#51198] " Nicolò Balzarotti
2021-10-26 22:53 ` Leo Famulari
2021-10-26 22:54 ` Leo Famulari
2021-10-26 23:16 ` Leo Famulari [this message]
2021-10-27 8:44 ` Nicolò Balzarotti
2021-10-27 15:38 ` Leo Famulari
2021-10-27 15:56 ` Ludovic Courtès
2021-11-03 17:32 ` Leo Famulari
2021-11-06 16:45 ` Ludovic Courtès
2021-11-27 23:36 ` Leo Famulari
2022-03-18 17:12 ` bug#51198: " Leo Famulari
2021-11-27 23:32 ` [bug#51198] [PATCH v2 1/2] build-system/gnu: Add #:local-build? parameter Leo Famulari
2021-11-27 23:32 ` [bug#51198] [PATCH v2 2/2] gnu: b2sum: Build on the local machine Leo Famulari
2021-12-01 15:34 ` [bug#51198] [PATCH] gnu: Add b2sum zimoun
2021-12-01 17:50 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YXiMRvAiHuTfIDU5@jasmine.lan \
--to=leo@famulari.name \
--cc=51198@debbugs.gnu.org \
--cc=anothersms@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.