Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

avoid gzip benchmark data

Chris Lu2a19511ba848
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go
index 8b65c86637..d0a1a587af 100644
--- a/weed/command/benchmark.go
+++ b/weed/command/benchmark.go
@@ -213,7 +213,11 @@ func writeFiles(idChan chan int, fileIdLineChan chan string, s *stat) {
for id := range idChan {
start := time.Now()
fileSize := int64(*b.fileSize + random.Intn(64))
- fp := &operation.FilePart{Reader: &FakeReader{id: uint64(id), size: fileSize}, FileSize: fileSize}
+ fp := &operation.FilePart{
+ Reader: &FakeReader{id: uint64(id), size: fileSize},
+ FileSize: fileSize,
+ MimeType: "image/bench", // prevent gzip benchmark content
+ }
ar := &operation.VolumeAssignRequest{
Count: 1,
Collection: *b.collection,