feat: Added k6 performance tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user