Commit f10d0822 authored by Your Name's avatar Your Name

update test record

parent 4a17a299
...@@ -61,12 +61,22 @@ ...@@ -61,12 +61,22 @@
|1 | 220 | 220 | 220 | | | 24808.401989/s | 0.0% | | |1 | 220 | 220 | 220 | | | 24808.401989/s | 0.0% | |
|2 | 220 | 220 | 220 | 1 | | 1055.079942/s | 5.58% | | |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 | 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插件; * kong 环境: 在gateway service上启用 Request Termination插件;
......
...@@ -34,24 +34,41 @@ export default function () { ...@@ -34,24 +34,41 @@ export default function () {
let array = new Array(1000); let array = new Array(1000);
for (let i = 0; i < array.length; i++) { for (let i = 0; i < array.length; i++) {
array[i] = {
method: 'POST',
url: 'http://192.168.1.220:8000/api/v1/demianhjw/aigic/0129', array[i]={
body: { method: 'GET',
"model_name": "Realistic_Vision_V1.4", url: 'http://192.168.1.220/images/testImage.png',
"model_type": "tex2img", //url: 'http://192.168.1.220:6002',
"desc": { // url: 'http://192.168.1.220:6001/api/v1/demianhjw/aigic/0129',
"prompt": " a small car",
"steps": 20
}
},
params: {
headers: { "Content-Type": "application/json",
"apikey":"6r9aCCENYah5KPARJ4GLFmlOLs0uAEr2",
"async":"true"},
},
}; };
// 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); const responses = http.batch(array);
......
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