From 09a8ca7cc984ab6ee8f6e385598de254b248ca12 Mon Sep 17 00:00:00 2001 From: Steve Jenson Date: Wed, 7 Dec 2016 10:25:17 -0800 Subject: [PATCH] Adding back william's header previously lost to the branches of time. --- main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c9b5da9..3bd222e 100644 --- a/main.go +++ b/main.go @@ -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() {