Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
benchmark
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
Odysseus
benchmark
Commits
f10d0822
Commit
f10d0822
authored
Feb 27, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update test record
parent
4a17a299
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
18 deletions
+45
-18
README.md
http/README.md
+11
-1
http_batch.js
http/http_batch.js
+34
-17
No files found.
http/README.md
View file @
f10d0822
...
...
@@ -61,12 +61,22 @@
|1 | 220 | 220 | 220 | | | 24808.401989/s | 0.0% | |
|2 | 220 | 220 | 220 | 1 | | 1055.079942/s | 5.58% | |
|3 | 220 | 220 | 220 | | 1 | 1701.379022/s | 0.00% | 2.7 GB/s |
|
3
| 220 | 220 | 220 | 1 | 1 | 618.755198/s | 2.16% | 953 MB/s |
|
4
| 220 | 220 | 220 | 1 | 1 | 618.755198/s | 2.16% | 953 MB/s |
| 序号 | k6 | api-backend | server | 1.5M | k6 速率 | mem | 带宽 |
|:--: | :---: | :----: | :----: | :----: | :----: | :----: | :----: |
|1 | 220 | 220 | fiber | pool | 2406/s | 越来越低 | 3.8G/s |
|2 | 220 | 220 | mux | pool | 2402/s | 越来越低 | 3.8G/s |
|3 | 220 | 220 | fiber | 全局变量 | 1890/s | 越来越低 | 3.0G/s |
|4 | 220 | 220 | mux | 全局变量 | 1948/s | 越来越低 | 3.1G/s |
|5 | 220 | 220 | nginx | 文件1.5M | 3241/s | 越来越低 | 5.1G/s |
|6 | 220 | 220 | nginx | 文件1.4M | 3340/s | 越来越低 | 5.2GB/s |
### 单机测试
*
kong 环境: 在gateway service上启用 Request Termination插件;
...
...
http/http_batch.js
View file @
f10d0822
...
...
@@ -34,24 +34,41 @@ export default function () {
let
array
=
new
Array
(
1000
);
for
(
let
i
=
0
;
i
<
array
.
length
;
i
++
)
{
array
[
i
]
=
{
method
:
'
POST
'
,
url
:
'
http://192.168.1.220:8000/api/v1/demianhjw/aigic/0129
'
,
body
:
{
"
model_name
"
:
"
Realistic_Vision_V1.4
"
,
"
model_type
"
:
"
tex2img
"
,
"
desc
"
:
{
"
prompt
"
:
"
a small car
"
,
"
steps
"
:
20
}
},
params
:
{
headers
:
{
"
Content-Type
"
:
"
application/json
"
,
"
apikey
"
:
"
6r9aCCENYah5KPARJ4GLFmlOLs0uAEr2
"
,
"
async
"
:
"
true
"
},
},
array
[
i
]
=
{
method
:
'
GET
'
,
url
:
'
http://192.168.1.220/images/testImage.png
'
,
//url: 'http://192.168.1.220:6002',
// url: 'http://192.168.1.220:6001/api/v1/demianhjw/aigic/0129',
};
// array[i]={
// method: 'POST',
// //url: 'http://192.168.1.220/images/testImage.png',
// url: 'http://192.168.1.220:6002',
// };
// array[i] = {
// method: 'POST',
// url: 'http://192.168.1.220:8000/api/v1/demianhjw/aigic/0129',
// //url: 'http://192.168.1.220:6001/api/v1/demianhjw/aigic/0129',
// body: {
// "model_name": "Realistic_Vision_V1.4",
// "model_type": "tex2img",
// "desc": {
// "prompt": " a small car",
// "steps": 20
// }
// },
// params: {
// headers: { "Content-Type": "application/json",
// "apikey":"6r9aCCENYah5KPARJ4GLFmlOLs0uAEr2",
// "async":"true"},
// },
// };
}
const
responses
=
http
.
batch
(
array
);
...
...
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