上传压测qps指标数据

This commit is contained in:
liwei1dao 2023-12-15 17:53:04 +08:00
parent f6f61e58e7
commit 549006f4cd

View File

@ -97,6 +97,7 @@ func (this *statisticalComp) OutReport() {
file.WriteString(fmt.Sprintf("最大同时在线人数: %d\n", this.maxonlineNum))
file.WriteString(fmt.Sprintf("压测执行时长: %.2f秒\n", this.end.Sub(this.start).Seconds()))
file.WriteString(fmt.Sprintf("消息总请求数: %d\n", totalmessage))
file.WriteString(fmt.Sprintf("QPS: %.2f\n", float64(totalmessage)/this.end.Sub(this.start).Seconds()))
file.WriteString("---消息压测详情----------------------------------------------------------------------------------------------------\n")
for message, data := range messages {
sort.Slice(data, func(i, j int) bool {