+ benchmark
This commit is contained in:
parent
131d3d600e
commit
5aa23bf02f
4 changed files with 69 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -20,3 +20,4 @@ dist
|
|||
ui
|
||||
^ui/index.html
|
||||
tests/data/*/*
|
||||
debug.log
|
||||
|
|
|
|||
42
tests/apis/benchmark.http.json
Normal file
42
tests/apis/benchmark.http.json
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"name": "用户接口",
|
||||
"version": "1.0.0",
|
||||
"description": "用户API",
|
||||
"group": "benchmark",
|
||||
"guard": "bearer-jwt",
|
||||
"paths": [
|
||||
{
|
||||
"path": "/ping",
|
||||
"method": "GET",
|
||||
"guard": "-",
|
||||
"process": "xiang.helper.Return",
|
||||
"in": [":query"],
|
||||
"out": {
|
||||
"status": 200,
|
||||
"type": "application/json"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/flows/pure",
|
||||
"method": "GET",
|
||||
"guard": "-",
|
||||
"process": "flows.benchmark.pure",
|
||||
"in": [],
|
||||
"out": {
|
||||
"status": 200,
|
||||
"type": "application/json"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/flows/script",
|
||||
"method": "GET",
|
||||
"guard": "-",
|
||||
"process": "flows.benchmark.script",
|
||||
"in": [],
|
||||
"out": {
|
||||
"status": 200,
|
||||
"type": "application/json"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
13
tests/flows/benchmark/pure.flow.json
Normal file
13
tests/flows/benchmark/pure.flow.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"label": "性能测试",
|
||||
"version": "1.0.0",
|
||||
"description": "性能测试",
|
||||
"nodes": [
|
||||
{
|
||||
"name": "性能测试",
|
||||
"process": "xiang.helper.Return",
|
||||
"args": [1, 2, 3]
|
||||
}
|
||||
],
|
||||
"output": "{{$res.性能测试}}"
|
||||
}
|
||||
13
tests/flows/benchmark/script.flow.json
Normal file
13
tests/flows/benchmark/script.flow.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"label": "性能测试",
|
||||
"version": "1.0.0",
|
||||
"description": "性能测试",
|
||||
"nodes": [
|
||||
{
|
||||
"name": "性能测试",
|
||||
"process": "scripts.time.now",
|
||||
"args": [1, 2, 3]
|
||||
}
|
||||
],
|
||||
"output": "{{$res.性能测试}}"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue