Martin Kavalar / Jan 11 2020
BLAKE3
Trying out the BLAKE3 cryptographic hash function (HN discussion).
Let's first install it via cargo
.
cargo install b3sum
154.8s
BLAKE3 (Bash)
Then we're generating a 1GB file.
head -c 1000000000 /dev/urandom > /tmp/bigfile
8.2s
BLAKE3 (Bash)
Hashing it with SHA-2 takes ~7 seconds.
time shasum -a 256 /tmp/bigfile
7.7s
BLAKE3 (Bash)
With blake3 only ~0.8s.
time b3sum /tmp/bigfile
1.4s
BLAKE3 (Bash)