diff options
| author | 2026-03-04 08:26:56 +0800 | |
|---|---|---|
| committer | 2026-03-04 08:59:53 +0800 | |
| commit | ab7501be34032fb9e5c48726a68ae90a917af9eb (patch) | |
| tree | 20d005647569befea8133e953c3270e8fd2a2a5b /internal/adler32/bench_test.go | |
| parent | *: gofumpt (diff) | |
| signature | No signature | |
*: Lint
Diffstat (limited to 'internal/adler32/bench_test.go')
| -rw-r--r-- | internal/adler32/bench_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/adler32/bench_test.go b/internal/adler32/bench_test.go index 6c6f75ea..d2aebe8f 100644 --- a/internal/adler32/bench_test.go +++ b/internal/adler32/bench_test.go @@ -10,7 +10,7 @@ const benchmarkSize = 64 * 1024 var data = make([]byte, benchmarkSize) -func init() { +func init() { //nolint:gochecknoinits for i := range benchmarkSize { data[i] = byte(i % 256) } @@ -18,6 +18,7 @@ func init() { func BenchmarkChecksum(b *testing.B) { b.ReportAllocs() + for b.Loop() { adler32.Checksum(data) } |
