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
1 changed files with 1 additions and 1 deletions

View File

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