Skip to content

Commit

Permalink
streamline
Browse files Browse the repository at this point in the history
  • Loading branch information
AhadAli01 committed Apr 25, 2024
1 parent eb55506 commit aafb449
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 34 deletions.
25 changes: 19 additions & 6 deletions scripts/rampingArrivalRate/spikeTests/scenario1.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,33 @@ export const options = {
timeUnit: '1s',

// Pre-allocate necessary VUs.
preAllocatedVUs: 100,
// preAllocatedVUs: 100,

stages: [

{ target: 10, duration: '40s' },
{ target: 10, duration: '20s' },

{ target: 80, duration: '20s' },
{ target: 70, duration: '30s' },

{ target: 10, duration: '40s' },
{ target: 10, duration: '10s' },

{ target: 100, duration: '20s' },
{ target: 90, duration: '30s' },

{ target: 10, duration: '20s' },
{ target: 10, duration: '10s' },
],

// executor: 'ramping-arrival-rate',
startVUs: 0,
// stages: [
// { target: '20s', duration: 10 },
// { target: '30s', duration: 70 },
// { target: '10s', duration: 10 },
// { target: '30s', duration: 90 },
// { target: '10s', duration: 10 },
// ],
gracefulRampDown: '0s',


},
},
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/rampingArrivalRate/stressTests/scenario1.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const options = {
timeUnit: '1s',

// Pre-allocate necessary VUs.
preAllocatedVUs: 100,
preAllocatedVUs: 1,

stages: [

Expand Down
9 changes: 5 additions & 4 deletions scripts/rampingVUs/spikeTests/scenario1.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ export const options = {
executor: 'ramping-vus',
startVUs: 0,
stages: [
{ duration: '30s', target: 25 },
{ duration: '30s', target: 100 },
{ duration: '1m', target: 100 },
{ duration: '30s', target: 0 },
{ duration: '20s', target: 10 },
{ duration: '30s', target: 70 },
{ duration: '10s', target: 10 },
{ duration: '30s', target: 90 },
{ duration: '10s', target: 10 },
],
gracefulRampDown: '0s',
},
Expand Down
9 changes: 5 additions & 4 deletions scripts/rampingVUs/spikeTests/scenario2.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ export const options = {
executor: 'ramping-vus',
startVUs: 0,
stages: [
{ duration: '30s', target: 25 },
{ duration: '30s', target: 100 },
{ duration: '1m', target: 100 },
{ duration: '30s', target: 0 },
{ duration: '20s', target: 10 },
{ duration: '30s', target: 70 },
{ duration: '10s', target: 10 },
{ duration: '30s', target: 90 },
{ duration: '10s', target: 10 },
],
gracefulRampDown: '0s',
},
Expand Down
25 changes: 12 additions & 13 deletions scripts/rampingVUs/stressTests/scenario1.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,23 @@ const BASE_URL = `http://${__ENV.HOST || 'localhost'}:8080/tools.descartes.teast

const groupResponseTimes = {};


//Stress
export const options = {
discardResponseBodies: true,
scenarios: {
blackTeaBrowse: {
executor: 'ramping-vus',
startVUs: 0,
stages: [
{ duration: '20s', target: 10 },
{ duration: '30s', target: 50 },
{ duration: '30s', target: 75 },
{ duration: '30s', target: 100 },
],
gracefulRampDown: '0s',
},
blackTeaBrowse: {
executor: 'ramping-vus',
startVUs: 0,
stages: [
{ duration: '30s', target: 25 },
{ duration: '30s', target: 100 },
{ duration: '1m', target: 100 },
{ duration: '30s', target: 0 },
],
gracefulRampDown: '0s',
},
},
};
};

export default function () {
group('TeaStore Homepage', () => {
Expand Down
11 changes: 5 additions & 6 deletions scripts/rampingVUs/stressTests/scenario2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ const BASE_URL = `http://${__ENV.HOST || 'localhost'}:8080/tools.descartes.teast

const groupResponseTimes = {};

//Spikes
//Stress
export const options = {
discardResponseBodies: true,
scenarios: {
blackTeaBrowse: {
executor: 'ramping-vus',
startVUs: 0,
stages: [
{ duration: '20s', target: 10 },
{ duration: '30s', target: 70 },
{ duration: '10s', target: 10 },
{ duration: '30s', target: 90 },
{ duration: '10s', target: 10 },
{ duration: '30s', target: 25 },
{ duration: '30s', target: 100 },
{ duration: '1m', target: 100 },
{ duration: '30s', target: 0 },
],
gracefulRampDown: '0s',
},
Expand Down

0 comments on commit aafb449

Please sign in to comment.