Date: Tue, 6 Dec 2022 08:42:31 -0700 From: Warner Losh <imp@bsdimp.com> To: Yonas Yanfa <yonas.yanfa@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Add BLAKE3 hash to ISO checksums Message-ID: <CANCZdfpxa9_Twauy5G03vMbaEpZrL8MTOoFG1zT%2Bg1KMZh_52Q@mail.gmail.com> In-Reply-To: <6d973f68-7904-5c23-6c6b-73a76e0a4ef5@gmail.com> References: <6d973f68-7904-5c23-6c6b-73a76e0a4ef5@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009d3f5c05ef2aa71a Content-Type: text/plain; charset="UTF-8" On Mon, Dec 5, 2022 at 9:27 PM Yonas Yanfa <yonas.yanfa@gmail.com> wrote: > Hi, > > Can we please add BLAKE3 hashes to > https://www.freebsd.org/releases/13.1R/signatures ? > > On first run, BLAKE3 runs at the same speed as SHA-512. On my system, > the second run is 17x faster. > > I recommend using https://crates.io/crates/b3sum At the very least, we'd need a b3sum port to integrate this into the release building work flow. Warner > > > $ for hash in b3sum sha256sum sha512sum ; time $hash > FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end > 5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in 5.05 secs fish external > usr time 834.12 millis 4.53 millis 829.58 millis > sys time 666.34 millis 0.44 millis 665.90 millis > > 697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40 > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in 7.46 secs fish external > usr time 7.13 secs 287.00 micros 7.13 secs > sys time 0.31 secs 146.00 micros 0.31 secs > > 259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2 > > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in 4.84 secs fish external > usr time 4.61 secs 274.00 micros 4.61 secs > sys time 0.18 secs 140.00 micros 0.18 secs > > $ for hash in b3sum sha256sum sha512sum ; time $hash > FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end > 5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in 280.16 millis fish external > usr time 852.65 millis 316.00 micros 852.34 millis > sys time 86.98 millis 166.00 micros 86.81 millis > > 697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40 > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in 7.39 secs fish external > usr time 7.17 secs 343.00 micros 7.17 secs > sys time 0.21 secs 181.00 micros 0.21 secs > > 259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2 > > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in 4.84 secs fish external > usr time 4.57 secs 363.00 micros 4.57 secs > sys time 0.23 secs 192.00 micros 0.23 secs > > > Cheers, > Yonas > > > --0000000000009d3f5c05ef2aa71a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Mon, Dec 5, 2022 at 9:27 PM Yonas = Yanfa <<a href=3D"mailto:yonas.yanfa@gmail.com">yonas.yanfa@gmail.com</a= >> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,= <br> <br> Can we please add BLAKE3 hashes to <br> <a href=3D"https://www.freebsd.org/releases/13.1R/signatures" rel=3D"norefe= rrer" target=3D"_blank">https://www.freebsd.org/releases/13.1R/signatures</= a> ?<br> <br> On first run, BLAKE3 runs at the same speed as SHA-512. On my system, <br> the second run is 17x faster.<br> <br> I recommend using <a href=3D"https://crates.io/crates/b3sum" rel=3D"norefer= rer" target=3D"_blank">https://crates.io/crates/b3sum</a></blockquote><div>= <br></div><div>At the very least, we'd need a b3sum port to integrate t= his into the release building work flow.</div><div><br></div><div>Warner</d= iv><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> <br> $ for hash in b3sum sha256sum sha512sum ; time $hash <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end<br> 5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso<br> <br> ________________________________________________________<br> Executed in=C2=A0=C2=A0=C2=A0 5.05 secs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fish= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external<br> =C2=A0=C2=A0=C2=A0 usr time=C2=A0 834.12 millis=C2=A0=C2=A0=C2=A0 4.53 mill= is=C2=A0 829.58 millis<br> =C2=A0=C2=A0=C2=A0 sys time=C2=A0 666.34 millis=C2=A0=C2=A0=C2=A0 0.44 mill= is=C2=A0 665.90 millis<br> <br> 697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40 <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso<br> <br> ________________________________________________________<br> Executed in=C2=A0=C2=A0=C2=A0 7.46 secs=C2=A0=C2=A0=C2=A0 fish=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external<br> =C2=A0=C2=A0=C2=A0 usr time=C2=A0=C2=A0=C2=A0 7.13 secs=C2=A0 287.00 micros= =C2=A0=C2=A0=C2=A0 7.13 secs<br> =C2=A0=C2=A0=C2=A0 sys time=C2=A0=C2=A0=C2=A0 0.31 secs=C2=A0 146.00 micros= =C2=A0=C2=A0=C2=A0 0.31 secs<br> <br> 259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8= db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2 <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso<br> <br> ________________________________________________________<br> Executed in=C2=A0=C2=A0=C2=A0 4.84 secs=C2=A0=C2=A0=C2=A0 fish=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external<br> =C2=A0=C2=A0=C2=A0 usr time=C2=A0=C2=A0=C2=A0 4.61 secs=C2=A0 274.00 micros= =C2=A0=C2=A0=C2=A0 4.61 secs<br> =C2=A0=C2=A0=C2=A0 sys time=C2=A0=C2=A0=C2=A0 0.18 secs=C2=A0 140.00 micros= =C2=A0=C2=A0=C2=A0 0.18 secs<br> <br> $ for hash in b3sum sha256sum sha512sum ; time $hash <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end<br> 5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso<br> <br> ________________________________________________________<br> Executed in=C2=A0 280.16 millis=C2=A0=C2=A0=C2=A0 fish=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external<br> =C2=A0=C2=A0=C2=A0 usr time=C2=A0 852.65 millis=C2=A0 316.00 micros=C2=A0 8= 52.34 millis<br> =C2=A0=C2=A0=C2=A0 sys time=C2=A0=C2=A0 86.98 millis=C2=A0 166.00 micros=C2= =A0=C2=A0 86.81 millis<br> <br> 697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40 <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso<br> <br> ________________________________________________________<br> Executed in=C2=A0=C2=A0=C2=A0 7.39 secs=C2=A0=C2=A0=C2=A0 fish=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external<br> =C2=A0=C2=A0=C2=A0 usr time=C2=A0=C2=A0=C2=A0 7.17 secs=C2=A0 343.00 micros= =C2=A0=C2=A0=C2=A0 7.17 secs<br> =C2=A0=C2=A0=C2=A0 sys time=C2=A0=C2=A0=C2=A0 0.21 secs=C2=A0 181.00 micros= =C2=A0=C2=A0=C2=A0 0.21 secs<br> <br> 259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8= db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2 <br> FreeBSD-13.1-RELEASE-amd64-disc1.iso<br> <br> ________________________________________________________<br> Executed in=C2=A0=C2=A0=C2=A0 4.84 secs=C2=A0=C2=A0=C2=A0 fish=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external<br> =C2=A0=C2=A0=C2=A0 usr time=C2=A0=C2=A0=C2=A0 4.57 secs=C2=A0 363.00 micros= =C2=A0=C2=A0=C2=A0 4.57 secs<br> =C2=A0=C2=A0=C2=A0 sys time=C2=A0=C2=A0=C2=A0 0.23 secs=C2=A0 192.00 micros= =C2=A0=C2=A0=C2=A0 0.23 secs<br> <br> <br> Cheers,<br> Yonas<br> <br> <br> </blockquote></div></div> --0000000000009d3f5c05ef2aa71a--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpxa9_Twauy5G03vMbaEpZrL8MTOoFG1zT%2Bg1KMZh_52Q>