feat: Added k6 performance tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { chessUserJourney } from '../scenarios/chessUserScenario.js';
|
||||
import { thresholds } from '../config.js';
|
||||
|
||||
const CONCURRENT_USERS = parseInt(__ENV.CONCURRENT_USERS || '3', 10);
|
||||
const DURATION = parseInt(__ENV.DURATION || '300', 10);
|
||||
|
||||
export const options = {
|
||||
vus: CONCURRENT_USERS,
|
||||
duration: `${DURATION}s`,
|
||||
thresholds,
|
||||
};
|
||||
|
||||
export default function () {
|
||||
chessUserJourney();
|
||||
}
|
||||
Reference in New Issue
Block a user