diff options
| author | 2025-11-19 08:00:00 +0800 | |
|---|---|---|
| committer | 2025-11-19 08:00:00 +0800 | |
| commit | e05d1757bc9c53f954c6bfb600bc8740f1f9fb83 (patch) | |
| tree | 99e24f2078bd609a38b3c6bea2c02aa70fedb8e9 /internal/bench/decompress.go | |
| parent | SIMD with AVX2 on supported AMD64 machines (diff) | |
| signature | No signature | |
Remove the broken compression benchmarking utility
Diffstat (limited to 'internal/bench/decompress.go')
| -rw-r--r-- | internal/bench/decompress.go | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/internal/bench/decompress.go b/internal/bench/decompress.go deleted file mode 100644 index 2eab0ad2..00000000 --- a/internal/bench/decompress.go +++ /dev/null @@ -1,50 +0,0 @@ -//go:build ignore - -package main - -import ( - "fmt" - "io" - "os" - - "git.sr.ht/~runxiyu/furgit/internal/zlib" -) - -func main() { - if len(os.Args) != 3 { - fmt.Fprintf(os.Stderr, "Usage: %s <input.zlib> <output>\n", os.Args[0]) - os.Exit(1) - } - - inputFile := os.Args[1] - outputFile := os.Args[2] - - in, err := os.Open(inputFile) - if err != nil { - fmt.Fprintf(os.Stderr, "Error opening input file: %v\n", err) - os.Exit(1) - } - defer in.Close() - - out, err := os.Create(outputFile) - if err != nil { - fmt.Fprintf(os.Stderr, "Error creating output file: %v\n", err) - os.Exit(1) - } - defer out.Close() - - reader, err := zlib.NewReader(in) - if err != nil { - fmt.Fprintf(os.Stderr, "Error creating zlib reader: %v\n", err) - os.Exit(1) - } - defer reader.Close() - - _, err = io.Copy(out, reader) - if err != nil { - fmt.Fprintf(os.Stderr, "Error decompressing data: %v\n", err) - os.Exit(1) - } - - fmt.Fprintf(os.Stderr, "Successfully decompressed %s to %s\n", inputFile, outputFile) -} |
