Skip to content

Commit

Permalink
Merge branch 'feature/DEV-293'
Browse files Browse the repository at this point in the history
  • Loading branch information
JKetelaar committed Mar 7, 2022
2 parents f2f158a + 90a1496 commit 1bed8b0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cmd/speedtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ func speedtest(testableUrl string) {
end := time.Now()

speedData := [][]string{
{"DNS lookup", fmt.Sprintf("%d ms", int(result.DNSLookup/time.Millisecond))},
{"TCP connection", fmt.Sprintf("%d ms", int(result.TCPConnection/time.Millisecond))},
{"TLS handshake", fmt.Sprintf("%d ms", int(result.TCPConnection/time.Millisecond))},
{"Server processing", fmt.Sprintf("%d ms", int(result.ServerProcessing/time.Millisecond))},
{"Content transfer", fmt.Sprintf("%d ms", int(result.ContentTransfer(end)/(time.Millisecond)))},
{"Name Lookup", fmt.Sprintf("%d ms", int(result.NameLookup/time.Millisecond))},
{"Connect", fmt.Sprintf("%d ms", int(result.Connect/time.Millisecond))},
{"Pre Transfer", fmt.Sprintf("%d ms", int(result.Pretransfer/time.Millisecond))},
{"Start Transfer", fmt.Sprintf("%d ms", int(result.StartTransfer/time.Millisecond))},
{"Total", fmt.Sprintf("%d ms", int(result.Total(end)/time.Millisecond))},
{"DNS lookup", fmt.Sprintf("%d ms", result.DNSLookup/time.Millisecond)},
{"TCP connection", fmt.Sprintf("%d ms", result.TCPConnection/time.Millisecond)},
{"TLS handshake", fmt.Sprintf("%d ms", result.TCPConnection/time.Millisecond)},
{"Server processing", fmt.Sprintf("%d ms", result.ServerProcessing/time.Millisecond)},
{"Content transfer", fmt.Sprintf("%d ms", result.ContentTransfer(end)/(time.Millisecond))},
{"Name Lookup", fmt.Sprintf("%d ms", result.NameLookup/time.Millisecond)},
{"Connect", fmt.Sprintf("%d ms", result.Connect/time.Millisecond)},
{"Pre Transfer", fmt.Sprintf("%d ms", result.Pretransfer/time.Millisecond)},
{"Start Transfer", fmt.Sprintf("%d ms", result.StartTransfer/time.Millisecond)},
{"Total", fmt.Sprintf("%d ms", result.Total(end)/time.Millisecond)},
}

table := tablewriter.NewWriter(os.Stdout)
Expand Down

0 comments on commit 1bed8b0

Please sign in to comment.