Browse Source

avoid gzip benchmark data

related to https://github.com/chrislusf/seaweedfs/issues/804
pull/809/head
Chris Lu 6 years ago
parent
commit
2a19511ba8
  1. 6
      weed/command/benchmark.go

6
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,

Loading…
Cancel
Save