Blake3 is 10 times faster than SHA-2
source link: https://nextjournal.com/mk/BLAKE3
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
BLAKE3
Trying out the BLAKE3 cryptographic hash function ( HN discussion ).
Let's first install it via cargo
.
cargo install b3sum
154.8s
BLAKE3 (Bash)
Rust
Then we're generating a 1GB file.
head -c 1000000000 /dev/urandom > /tmp/bigfile
8.2s
BLAKE3 (Bash)
Rust
Hashing it with SHA-2 takes ~7 seconds.
time shasum -a 256 /tmp/bigfile
7.7s
BLAKE3 (Bash)
Rust
With blake3 only ~0.8s.
time b3sum /tmp/bigfile
1.4s
BLAKE3 (Bash)
Rust
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK