+ benchmark

This commit is contained in:
Max 2022-01-22 03:13:00 +08:00
parent 131d3d600e
commit 5aa23bf02f
4 changed files with 69 additions and 0 deletions

1
.gitignore vendored
View file

@ -20,3 +20,4 @@ dist
ui
^ui/index.html
tests/data/*/*
debug.log

View 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"
}
}
]
}

View file

@ -0,0 +1,13 @@
{
"label": "性能测试",
"version": "1.0.0",
"description": "性能测试",
"nodes": [
{
"name": "性能测试",
"process": "xiang.helper.Return",
"args": [1, 2, 3]
}
],
"output": "{{$res.性能测试}}"
}

View file

@ -0,0 +1,13 @@
{
"label": "性能测试",
"version": "1.0.0",
"description": "性能测试",
"nodes": [
{
"name": "性能测试",
"process": "scripts.time.now",
"args": [1, 2, 3]
}
],
"output": "{{$res.性能测试}}"
}