Skip to content

Commit 8d51830

Browse files
committed
hash: add blake3
1 parent 88019fb commit 8d51830

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hash/hash_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"testing"
1717

1818
"github.com/jzelinskie/whirlpool"
19+
"github.com/zeebo/blake3"
1920
"golang.org/x/crypto/blake2b"
2021
"golang.org/x/crypto/sha3"
2122
)
@@ -51,6 +52,10 @@ func BenchmarkBlake2b512(b *testing.B) {
5152
benchmarkHashAlgo(b, h)
5253
}
5354

55+
func BenchmarkBlake3256(b *testing.B) {
56+
benchmarkHashAlgo(b, blake3.New())
57+
}
58+
5459
func BenchmarkCRC32(b *testing.B) {
5560
benchmarkHashAlgo(b, crc32.NewIEEE())
5661
}

0 commit comments

Comments
 (0)