lib/weakhash: Fix speed reporting in benchmark (#6470)

This commit is contained in:
greatroar 2020-03-29 17:07:25 +02:00 committed by GitHub
parent 38bd90e6f2
commit cc1b003f21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ func BenchmarkBlock(b *testing.B) {
test.hash.Reset() test.hash.Reset()
} }
bbb.SetBytes(int64(len(buf))) bbb.SetBytes(testSize)
bbb.ReportAllocs() bbb.ReportAllocs()
}) })