Skip to content
This repository was archived by the owner on Jan 25, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion s3bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func main() {
numClients := flag.Int("numClients", 40, "number of concurrent clients")
numSamples := flag.Int("numSamples", 200, "total number of requests to send")
skipCleanup := flag.Bool("skipCleanup", false, "skip deleting objects created by this tool at the end of the run")
pause := flag.Bool("pause", false, "pause before starting read stage")
verbose := flag.Bool("verbose", false, "print verbose per thread status")

flag.Parse()
Expand Down Expand Up @@ -92,6 +93,13 @@ func main() {
writeResult := params.Run(opWrite)
fmt.Println()

// Pause after write test and before read test
if *pause {
fmt.Printf("Press enter to start read test...\n")
fmt.Scanln()
fmt.Println()
}

fmt.Printf("Running %s test...\n", opRead)
readResult := params.Run(opRead)
fmt.Println()
Expand Down Expand Up @@ -255,7 +263,7 @@ func (params Params) String() string {
output += fmt.Sprintf("objectSize: %0.4f MB\n", float64(params.objectSize)/(1024*1024))
output += fmt.Sprintf("numClients: %d\n", params.numClients)
output += fmt.Sprintf("numSamples: %d\n", params.numSamples)
output += fmt.Sprintf("verbose: %d\n", params.verbose)
output += fmt.Sprintf("verbose: %t\n", params.verbose)
return output
}

Expand Down