From 959f5423ff898328a935da57aebb31e1bc942c08 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 6 Dec 2022 14:26:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8Dms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stress/server/statistics/statistics.go | 2 +- stress/stress.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"