Skip to content

Commit

Permalink
Merge pull request #34 from BuoyantIO/stevej/output_header
Browse files Browse the repository at this point in the history
Adding back william's header previously lost to the branches of time.
  • Loading branch information
stevej authored Dec 7, 2016
2 parents 49dfc28 + 09a8ca7 commit 46d42bc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,14 @@ func main() {
doTLS := dstURL.Scheme == "https"
client := newClient(*compress, doTLS, *noreuse, *concurrency)
var sendTraffic sync.WaitGroup

// The time portion of the header can change due to timezone.
timeLen := len(time.Now().Format(time.RFC3339))
timePadding := strings.Repeat(" ", timeLen)
intLen := len(fmt.Sprintf("%s", *interval))
intPadding := strings.Repeat(" ", intLen-2)

fmt.Printf("# sending %d req/s with concurrency=%d to %s ...\n", (*qps * *concurrency), *concurrency, dstURL)
fmt.Printf("# %s good/b/f t good%% %s min [p50 p95 p99 p999] max change\n", timePadding, intPadding)
for i := 0; i < *concurrency; i++ {
ticker := time.NewTicker(timeToWait)
go func() {
Expand Down

0 comments on commit 46d42bc

Please sign in to comment.