test: add k6 test js

This commit is contained in:
ReaJason
2025-08-13 23:53:40 +08:00
parent d4efc69643
commit a1f3bd5b6c
+16
View File
@@ -0,0 +1,16 @@
import http from 'k6/http';
import {check, sleep} from 'k6';
export const options = {
rps: 4500,
vus: 10,
duration: '5m',
};
export default function () {
const res = http.get('http://localhost:8082/app/test');
check(res, {
'status is 200': (r) => r.status === 200,
});
sleep(1);
}