diff --git a/bin/robot001.txt b/bin/robot001.txt index 6def53335..ff148369c 100644 --- a/bin/robot001.txt +++ b/bin/robot001.txt @@ -1,25 +1,34 @@ 机器人总数: 1 成功数量: 1 失败数量: 0 -消息总吞吐量: 79 +消息总吞吐量: 163 ---消息压测详情---------------------------------------------------------------------------------------------------- -消息名:gm.cmd 请求次数:2 耗时最小:0 ms 耗时最大:5 ms 平均耗时:2.50 ms 中位耗时:2.50 ms -消息名:hero.drawcard 请求次数:1 耗时最小:76 ms 耗时最大:76 ms 平均耗时:76.00ms 中位耗时:76.00ms +消息名:hero.talentlist 请求次数:1 耗时最小:2 ms 耗时最大:2 ms 平均耗时:2.00 ms 中位耗时:2.00 ms +消息名:wtask.finish 请求次数:5 耗时最小:3 ms 耗时最大:15 ms 平均耗时:6.80 ms 中位耗时:5.00 ms +消息名:shop.getlist 请求次数:1 耗时最小:35 ms 耗时最大:35 ms 平均耗时:35.00ms 中位耗时:35.00ms +消息名:wtask.completecondi 请求次数:2 耗时最小:4 ms 耗时最大:7 ms 平均耗时:5.50 ms 中位耗时:5.50 ms +消息名:wtask.battlefinish 请求次数:2 耗时最小:6 ms 耗时最大:27 ms 平均耗时:16.50ms 中位耗时:16.50ms +消息名:viking.challengeover 请求次数:10 耗时最小:9 ms 耗时最大:15 ms 平均耗时:11.40ms 中位耗时:11.50ms +消息名:user.login 请求次数:1 耗时最小:234 ms 耗时最大:234 ms 平均耗时:234.00ms 中位耗时:234.00ms +消息名:equipment.upgrade 请求次数:10 耗时最小:3 ms 耗时最大:7 ms 平均耗时:4.10 ms 中位耗时:4.00 ms 消息名:wtask.info 请求次数:1 耗时最小:3 ms 耗时最大:3 ms 平均耗时:3.00 ms 中位耗时:3.00 ms -消息名:chat.send 请求次数:10 耗时最小:0 ms 耗时最大:1 ms 平均耗时:0.10 ms 中位耗时:0.00 ms -消息名:hero.talentlist 请求次数:1 耗时最小:3 ms 耗时最大:3 ms 平均耗时:3.00 ms 中位耗时:3.00 ms -消息名:equipment.getlist 请求次数:1 耗时最小:2 ms 耗时最大:2 ms 平均耗时:2.00 ms 中位耗时:2.00 ms -消息名:user.login 请求次数:1 耗时最小:982 ms 耗时最大:982 ms 平均耗时:982.00ms 中位耗时:982.00ms -消息名:viking.challenge 请求次数:10 耗时最小:0 ms 耗时最大:1 ms 平均耗时:0.70 ms 中位耗时:1.00 ms -消息名:items.getlist 请求次数:1 耗时最小:6 ms 耗时最大:6 ms 平均耗时:6.00 ms 中位耗时:6.00 ms +消息名:arena.matche 请求次数:10 耗时最小:5 ms 耗时最大:14 ms 平均耗时:7.40 ms 中位耗时:7.00 ms +消息名:arena.challenge 请求次数:10 耗时最小:4 ms 耗时最大:8 ms 平均耗时:6.00 ms 中位耗时:6.00 ms +消息名:viking.getlist 请求次数:10 耗时最小:0 ms 耗时最大:1 ms 平均耗时:0.20 ms 中位耗时:0.00 ms +消息名:arena.info 请求次数:1 耗时最小:0 ms 耗时最大:0 ms 平均耗时:0.00 ms 中位耗时:0.00 ms +消息名:pagoda.challenge 请求次数:10 耗时最小:2 ms 耗时最大:9 ms 平均耗时:3.00 ms 中位耗时:2.00 ms +消息名:pagoda.challengeover 请求次数:10 耗时最小:8 ms 耗时最大:19 ms 平均耗时:12.80ms 中位耗时:13.00ms +消息名:equipment.getlist 请求次数:1 耗时最小:4 ms 耗时最大:4 ms 平均耗时:4.00 ms 中位耗时:4.00 ms +消息名:hero.drawcard 请求次数:20 耗时最小:21 ms 耗时最大:69 ms 平均耗时:30.40ms 中位耗时:29.50ms +消息名:arena.challengeover 请求次数:10 耗时最小:1 ms 耗时最大:4 ms 平均耗时:1.40 ms 中位耗时:1.00 ms +消息名:pagoda.getlist 请求次数:1 耗时最小:4 ms 耗时最大:4 ms 平均耗时:4.00 ms 中位耗时:4.00 ms +消息名:sys.funcgetlist 请求次数:1 耗时最小:6 ms 耗时最大:6 ms 平均耗时:6.00 ms 中位耗时:6.00 ms +消息名:wtask.accept 请求次数:7 耗时最小:0 ms 耗时最大:5 ms 平均耗时:3.00 ms 中位耗时:3.00 ms +消息名:hero.list 请求次数:1 耗时最小:5 ms 耗时最大:5 ms 平均耗时:5.00 ms 中位耗时:5.00 ms +消息名:items.getlist 请求次数:1 耗时最小:3 ms 耗时最大:3 ms 平均耗时:3.00 ms 中位耗时:3.00 ms +消息名:viking.challenge 请求次数:10 耗时最小:4 ms 耗时最大:11 ms 平均耗时:6.10 ms 中位耗时:6.00 ms +消息名:user.create 请求次数:1 耗时最小:16 ms 耗时最大:16 ms 平均耗时:16.00ms 中位耗时:16.00ms +消息名:gm.cmd 请求次数:13 耗时最小:0 ms 耗时最大:8 ms 平均耗时:2.77 ms 中位耗时:4.00 ms 消息名:horoscope.info 请求次数:1 耗时最小:2 ms 耗时最大:2 ms 平均耗时:2.00 ms 中位耗时:2.00 ms -消息名:sys.funcgetlist 请求次数:1 耗时最小:3 ms 耗时最大:3 ms 平均耗时:3.00 ms 中位耗时:3.00 ms -消息名:arena.matche 请求次数:10 耗时最小:3 ms 耗时最大:6 ms 平均耗时:3.80 ms 中位耗时:3.50 ms -消息名:user.create 请求次数:1 耗时最小:2 ms 耗时最大:2 ms 平均耗时:2.00 ms 中位耗时:2.00 ms -消息名:hero.list 请求次数:1 耗时最小:14 ms 耗时最大:14 ms 平均耗时:14.00ms 中位耗时:14.00ms -消息名:arena.challenge 请求次数:10 耗时最小:1 ms 耗时最大:6 ms 平均耗时:2.80 ms 中位耗时:2.50 ms -消息名:arena.challengeover 请求次数:5 耗时最小:0 ms 耗时最大:1 ms 平均耗时:0.20 ms 中位耗时:0.00 ms -消息名:viking.getlist 请求次数:10 耗时最小:0 ms 耗时最大:0 ms 平均耗时:0.00 ms 中位耗时:0.00 ms -消息名:shop.buy 请求次数:10 耗时最小:2 ms 耗时最大:5 ms 平均耗时:2.40 ms 中位耗时:2.00 ms -消息名:arena.info 请求次数:1 耗时最小:18 ms 耗时最大:18 ms 平均耗时:18.00ms 中位耗时:18.00ms -消息名:shop.getlist 请求次数:1 耗时最小:2 ms 耗时最大:2 ms 平均耗时:2.00 ms 中位耗时:2.00 ms +消息名:wtask.battlestart 请求次数:2 耗时最小:2 ms 耗时最大:7 ms 平均耗时:4.50 ms 中位耗时:4.50 ms +消息名:chat.send 请求次数:10 耗时最小:0 ms 耗时最大:0 ms 平均耗时:0.00 ms 中位耗时:0.00 ms diff --git a/modules/robot/modulerobot_gm.go b/modules/robot/modulerobot_gm.go index 443d6c90c..968fa5a91 100644 --- a/modules/robot/modulerobot_gm.go +++ b/modules/robot/modulerobot_gm.go @@ -35,6 +35,54 @@ func (this *ModuleRobot_GM) OncePipeline(robot IRobot) (err error) { err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) return } + + //英雄 + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:hero,13001,1"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:hero,13002,1"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:hero,13003,1"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:hero,13004,1"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:hero,13005,1"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + + //装备 + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:equi,10115,10"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:equi,10114,10"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:equi,10113,10"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:equi,10112,10"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:equi,10111,10"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } + if _, errdata = robot.SendMessage("gm", "cmd", &pb.GMCmdReq{Cmod: "bingo:equi,10110,10"}); errdata != nil { + err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message)) + return + } return }