GNU bug report logs -
#51198
[PATCH] gnu: Add b2sum.
Previous Next
Reported by: Leo Famulari <leo <at> famulari.name>
Date: Thu, 14 Oct 2021 04:29:02 UTC
Severity: normal
Tags: patch
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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
This bug report was last modified 3 years and 67 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.