aboutsummaryrefslogtreecommitdiff
path: root/weed/command/benchmark.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/benchmark.go')
-rw-r--r--weed/command/benchmark.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go
index 8b65c8663..d0a1a587a 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,