diff options
| author | 2025-11-19 08:00:00 +0800 | |
|---|---|---|
| committer | 2025-11-19 08:00:03 +0800 | |
| commit | 7d60b65249c8af355d739ccf44482a899d89c9c1 (patch) | |
| tree | 387fc8fe242be2bf8df137dbad626dfcf8b93995 /internal/adler32/bench_test.go | |
| parent | Ignore some errors in the tests (actually from stdlib but linter complains) (diff) | |
| signature | No signature | |
Replace adler32 with github.com/mhr3/adler32-simd
Unfortunately no VSX support yet
Diffstat (limited to 'internal/adler32/bench_test.go')
| -rw-r--r-- | internal/adler32/bench_test.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/internal/adler32/bench_test.go b/internal/adler32/bench_test.go deleted file mode 100644 index fd1e4710..00000000 --- a/internal/adler32/bench_test.go +++ /dev/null @@ -1,24 +0,0 @@ -package adler32_test - -import ( - "testing" - - "git.sr.ht/~runxiyu/furgit/internal/adler32" -) - -const benchmarkSize = 64 * 1024 - -var data = make([]byte, benchmarkSize) - -func init() { - for i := 0; i < benchmarkSize; i++ { - data[i] = byte(i % 256) - } -} - -func BenchmarkChecksum(b *testing.B) { - b.ReportAllocs() - for i := 0; i < b.N; i++ { - adler32.Checksum(data) - } -} |
