Skip to content

Commit

Permalink
cmd/seb benchmark: print config
Browse files Browse the repository at this point in the history
  • Loading branch information
micvbang committed Jul 7, 2024
1 parent d47cd22 commit deeb7b8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/seb/app/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,19 @@ var benchmarkCmd = &cobra.Command{
fmt.Printf("%s\n\n", runs[runID].String())
}

fmt.Printf("Config:\n")
fmt.Printf("Num workers:\t\t%d\n", flags.numWorkers)
fmt.Printf("Num batches:\t\t%d\n", flags.numBatches)
fmt.Printf("Num records/batch:\t%d\n", flags.numRecordsPerBatch)
fmt.Printf("Record size:\t\t%s (%dB)\n", sizey.FormatBytes(flags.recordSize), flags.recordSize)
fmt.Printf("Total bytes:\t\t%s (%dB)\n", sizey.FormatBytes(totalBytes), totalBytes)

if flags.localBroker {
fmt.Printf("Batch block time:\t%s\n", flags.batchBlockTime)
fmt.Printf("Batch bytes max:\t%s (%d)\n", sizey.FormatBytes(flags.batchBytesMax), flags.batchBytesMax)
}
fmt.Printf("\n")

fmt.Println("Stats:")
runtimes := slicey.Map(runs, func(v benchmarkStats) float64 {
return v.elapsed.Seconds()
Expand Down

0 comments on commit deeb7b8

Please sign in to comment.