minio / blake2b-simd

Fast hashing using pure Go implementation of BLAKE2b with SIMD instructions
Apache License 2.0
254 stars 31 forks source link

Fix benchmarks to report proper values. #7

Closed harshavardhana closed 8 years ago

harshavardhana commented 8 years ago
$ go test -run=NONE -bench .
PASS
BenchmarkHash64-4    1000000          1036 ns/op      61.77 MB/s
BenchmarkHash128-4   2000000           801 ns/op     159.67 MB/s
BenchmarkHash1K-4     500000          2464 ns/op     415.53 MB/s
BenchmarkHash8K-4     200000         11212 ns/op     730.60 MB/s
BenchmarkHash32K-4     30000         40766 ns/op     803.80 MB/s
BenchmarkHash128K-4    10000        163170 ns/op     803.28 MB/s
ok      github.com/minio/blake2b-simd   10.298s