Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GW_pressureTest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
GW_pressureTest
Commits
c27c2087
Commit
c27c2087
authored
Mar 19, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了使用文档
parent
218e606f
Pipeline
#89
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
29 deletions
+10
-29
README.md
README.md
+6
-0
result.txt
result.txt
+0
-13
result_pre.txt
result_pre.txt
+0
-11
start.py
start.py
+4
-4
threadDetailsContinuous.json
threadDetailsContinuous.json
+0
-1
No files found.
README.md
0 → 100644
View file @
c27c2087
#网关压力测试脚本使用教程
1、测试机器上安装了python3.x.x版本
2、编辑start.py
3、设置好参数
4、启动脚本 python3 start.py
\ No newline at end of file
result.txt
deleted
100644 → 0
View file @
218e606f
-------------------------- 统计信息 --------------------------
耗时:2 毫秒产生了4线程
开始测试时间:2020-03-19 14:11:21
结束测试时间:2020-03-19 14:12:31
设置socket超时时间:30
设置线程持续时间:60
成功线程数:4
消息总数:79
连接失败:0
发送失败:0
接收失败:0
文件统计总消息数:79
文件统计总失败数:0
result_pre.txt
deleted
100644 → 0
View file @
218e606f
-------------------------- 统计信息(pre) --------------------------
耗时:2 毫秒产生了4线程
开始测试时间:2020-03-19 14:11:21
设置socket超时时间:30
设置线程持续时间:60
剩余线程数:2
连接失败:0
发送失败:0
接收失败:0
当前写入时间:2020-03-19 14:12:26
当前发送消息总数:79
start.py
View file @
c27c2087
...
...
@@ -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
()
...
...
threadDetailsContinuous.json
deleted
100644 → 0
View file @
218e606f
{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment