From bd31f767cb404b958388d7cc7db5a345a003b1a0 Mon Sep 17 00:00:00 2001 From: Coder <161350311+MamunC0der@users.noreply.github.com> Date: Sat, 18 Oct 2025 13:45:46 +0200 Subject: [PATCH] Update compress_test.go --- common/bitutil/compress_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/bitutil/compress_test.go b/common/bitutil/compress_test.go index c6f6fe8bcf..0edd3a790b 100644 --- a/common/bitutil/compress_test.go +++ b/common/bitutil/compress_test.go @@ -180,7 +180,7 @@ func benchmarkEncoding(b *testing.B, bytes int, fill float64) { // Reset the benchmark and measure encoding/decoding b.ResetTimer() b.ReportAllocs() - for i := 0; i < b.N; i++ { + for range b.Loop() { bitsetDecodeBytes(bitsetEncodeBytes(data), len(data)) } }