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

View File

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