diff --git a/README.md b/README.md index d9cd741..60fe8b0 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,8 @@ The example of how it works can be seen in tests. ## AVX vs AVX2 version ``` -BenchmarkAVX-8 300 3566248 ns/op 64 B/op 4 allocs/op -BenchmarkAVX2-8 500 2857174 ns/op 64 B/op 2 allocs/op +BenchmarkAVX-8 500 3579980 ns/op 27.93 MB/s 64 B/op 4 allocs/op +BenchmarkAVX2-8 500 2997518 ns/op 33.36 MB/s 64 B/op 2 allocs/op ``` # Contributing diff --git a/tz/hash_test.go b/tz/hash_test.go index e52ed90..650bfb5 100644 --- a/tz/hash_test.go +++ b/tz/hash_test.go @@ -75,6 +75,7 @@ func BenchmarkAVX(b *testing.B) { _, _ = d.Write(data) d.checkSum() } + b.SetBytes(int64(len(data))) } func BenchmarkAVX2(b *testing.B) { @@ -88,6 +89,7 @@ func BenchmarkAVX2(b *testing.B) { _, _ = d.Write(data) d.checkSum() } + b.SetBytes(int64(len(data))) } func TestHomomorphism(t *testing.T) {