diff --git a/stress/server/statistics/statistics.go b/stress/server/statistics/statistics.go index 53ddbfcb3..9861fc0ac 100644 --- a/stress/server/statistics/statistics.go +++ b/stress/server/statistics/statistics.go @@ -233,7 +233,7 @@ func table(successNum, failureNum uint64, errCode *sync.Map, speedStr = p.Sprintf("%d", speed) } // 打印的时长都为毫秒 - result := fmt.Sprintf("%4.0fs│%7d│%7d│%7d│%8.2f│%8.2f│%8.2f│%8.2f│%8s│%8s│%v", + result := fmt.Sprintf("%4.0fms│%7d│%7d│%7d│%8.2f│%8.2f│%8.2f│%8.2f│%8s│%8s│%v", requestTimeFloat, chanIDLen, successNum, failureNum, qps, maxTimeFloat, minTimeFloat, averageTime, receivedBytesStr, speedStr, printMap(errCode)) diff --git a/stress/stress.go b/stress/stress.go index 37a934ac5..2a2121ce9 100644 --- a/stress/stress.go +++ b/stress/stress.go @@ -79,7 +79,7 @@ func main() { flag.Parse() statistics.InitLog() - concurrency = 5 + concurrency = 10 totalNumber = 1 debugStr = "false" requestURL = "ws://10.0.0.85:7891/gateway"