feat: Added k6 performance tests

This commit is contained in:
2026-05-10 22:00:24 +02:00
commit 5f7dd2e281
9 changed files with 290 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { chessUserJourney } from '../scenarios/chessUserScenario.js';
import { thresholds } from '../config.js';
const MAX_USERS = parseInt(__ENV.MAX_USERS || '5', 10);
const RAMP_DURATION = parseInt(__ENV.RAMP_DURATION || '60', 10);
export const options = {
stages: [
{ duration: `${RAMP_DURATION}s`, target: MAX_USERS },
],
thresholds,
};
export default function () {
chessUserJourney();
}