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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
randomize the file size a little bit
Chris Lu2841d59fb031
diff --git a/go/weed/benchmark.go b/go/weed/benchmark.goindex 600ca781a0..173900c4f7 100644--- a/go/weed/benchmark.go+++ b/go/weed/benchmark.go@@ -161,7 +161,8 @@ func writeFiles(idChan chan int, fileIdLineChan chan string, s *stats) {for {if id, ok := <-idChan; ok {start := time.Now()- fp := &operation.FilePart{Reader: &FakeReader{id: uint64(id), size: int64(*b.fileSize)}, FileSize: int64(*b.fileSize)}+ fileSize := int64(*b.fileSize + rand.Intn(64))+ fp := &operation.FilePart{Reader: &FakeReader{id: uint64(id), size: fileSize}, FileSize: fileSize}if assignResult, err := operation.Assign(*b.server, 1, "", *b.collection); err == nil {fp.Server, fp.Fid, fp.Collection = assignResult.PublicUrl, assignResult.Fid, *b.collectionif _, ok := serverLimitChan[fp.Server]; !ok {@@ -171,7 +172,7 @@ func writeFiles(idChan chan int, fileIdLineChan chan string, s *stats) {if _, err := fp.Upload(0, *b.server); err == nil {fileIdLineChan <- fp.Fids.completed++- s.transferred += int64(*b.fileSize)+ s.transferred += fileSize} else {s.failed++}