mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
lib/weakhash: Fix speed reporting in benchmark (#6470)
This commit is contained in:
parent
38bd90e6f2
commit
cc1b003f21
@ -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()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user