lib/weakhash: Fix speed reporting in benchmark (#6470)
This commit is contained in:
@@ -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()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user