From cc1b003f21a671fcf682063671800cfecbf9199b Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Sun, 29 Mar 2020 17:07:25 +0200 Subject: [PATCH] lib/weakhash: Fix speed reporting in benchmark (#6470) --- lib/weakhash/benchmark_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weakhash/benchmark_test.go b/lib/weakhash/benchmark_test.go index 133be894e..929dabadd 100644 --- a/lib/weakhash/benchmark_test.go +++ b/lib/weakhash/benchmark_test.go @@ -93,7 +93,7 @@ func BenchmarkBlock(b *testing.B) { test.hash.Reset() } - bbb.SetBytes(int64(len(buf))) + bbb.SetBytes(testSize) bbb.ReportAllocs() })