Commit c27c2087 authored by liyuanhong's avatar liyuanhong

添加了使用文档

parent 218e606f
Pipeline #89 canceled with stages
#网关压力测试脚本使用教程
1、测试机器上安装了python3.x.x版本
2、编辑start.py
3、设置好参数
4、启动脚本 python3 start.py
\ No newline at end of file
-------------------------- 统计信息 --------------------------
耗时:2 毫秒产生了4线程
开始测试时间:2020-03-19 14:11:21
结束测试时间:2020-03-19 14:12:31
设置socket超时时间:30
设置线程持续时间:60
成功线程数:4
消息总数:79
连接失败:0
发送失败:0
接收失败:0
文件统计总消息数:79
文件统计总失败数:0
-------------------------- 统计信息(pre) --------------------------
耗时:2 毫秒产生了4线程
开始测试时间:2020-03-19 14:11:21
设置socket超时时间:30
设置线程持续时间:60
剩余线程数:2
连接失败:0
发送失败:0
接收失败:0
当前写入时间:2020-03-19 14:12:26
当前发送消息总数:79
......@@ -24,10 +24,10 @@ def startM500():
# t.setHost("10.100.12.32")
t.setHost("10.100.5.251")
t.setPort(9008) #M500
t.setThreadCount(4)
t.setTimeOut(30)
t.setDurTime(1 * 1 * 60)
t.setSetStartCarNumber(0)
t.setThreadCount(4) #设置线程数
t.setTimeOut(30) #设置超时时间
t.setDurTime(1 * 1 * 60) #设置持续时间
t.setSetStartCarNumber(0) #设置开始的车机号,每启动一个线程自动加1
# t.startThread()
t.startThreadContinuous()
......
{"thread-0": {"name": "thread-0", "status": 0, "timeExp": 62, "msgCon": 18}, "thread-1": {"name": "thread-1", "status": 0, "timeExp": 66, "msgCon": 20}, "thread-2": {"name": "thread-2", "status": 0, "timeExp": 63, "msgCon": 20}, "thread-3": {"name": "thread-3", "status": 0, "timeExp": 66, "msgCon": 21}}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment