Update compress_test.go

This commit is contained in:
Coder 2025-10-18 13:45:46 +02:00 committed by GitHub
parent 342285b139
commit bd31f767cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,7 @@ func benchmarkEncoding(b *testing.B, bytes int, fill float64) {
// Reset the benchmark and measure encoding/decoding // Reset the benchmark and measure encoding/decoding
b.ResetTimer() b.ResetTimer()
b.ReportAllocs() b.ReportAllocs()
for i := 0; i < b.N; i++ { for range b.Loop() {
bitsetDecodeBytes(bitsetEncodeBytes(data), len(data)) bitsetDecodeBytes(bitsetEncodeBytes(data), len(data))
} }
} }