Skip to content

Commit

Permalink
output summary tables
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Sep 5, 2019
1 parent 10320bc commit d9381a3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions load.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
package main

const (
summaryTable = `` + "\n\n" +
` DNS Lookup......................: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
` TCP Connect.....................: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
` Server Processing...............: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
` Content Transfer................: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
`` + "\n" +
`Summary: ` + "\n" +
` Total Req.......................: %s` + "\n" +
` Failed Req......................: %s` + "\n" +
` Req/s...........................: %s` + "\n\n"

summaryTLSTable = `` + "\n\n" +
` DNS Lookup......................: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
` TCP Connect.....................: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
` TLS Handshake...................: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
` Server Processing...............: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
` Content Transfer................: Avg/mean=%sms ` + "\t" + `Median=%sms ` + "\t" + `p(95)=%sms` + "\n" +
`` + "\n" +
`Summary: ` + "\n" +
` Total Req.......................: %s` + "\n" +
` Failed Req......................: %s` + "\n" +
` Req/s...........................: %s` + "\n\n"
)

func (c *cassowary) coordinate() error {

if c.fileMode {
Expand Down

0 comments on commit d9381a3

Please sign in to comment.