Skip to content

Commit 00a23bb

Browse files
author
Samin Rahman
committed
Tuned VUs, RPS and duration
1 parent 7dfb590 commit 00a23bb

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

performance-testing/uid2-operator/k6-token-generate-refresh-identitymap-scenario-1.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ const baseUrl = __ENV.OPERATOR_URL;
77
const clientSecret = __ENV.CLIENT_SECRET;
88
const clientKey = __ENV.CLIENT_KEY;
99

10-
const generateRPS = 500000;
10+
const generateRPS = 450000;
1111
const refreshRPS = 25000;
1212
const identityMapRPS = 1500;
13-
const testDuration = '15m'
13+
14+
const warmUpTime = '10m'
15+
const testDuration = '30m'
1416

1517
export const options = {
1618
insecureSkipTLSVerify: true,
@@ -21,10 +23,10 @@ export const options = {
2123
executor: 'ramping-arrival-rate',
2224
exec: 'tokenGenerate',
2325
timeUnit: '1s',
24-
preAllocatedVUs: 500,
25-
maxVUs: 1000,
26+
preAllocatedVUs: 1500,
27+
maxVUs: 2000,
2628
stages: [
27-
{ duration: '30s', target: generateRPS}
29+
{ duration: warmUpTime, target: generateRPS}
2830
],
2931
},
3032
tokenRefreshWarmup: {
@@ -34,7 +36,7 @@ export const options = {
3436
preAllocatedVUs: 200,
3537
maxVUs: 400,
3638
stages: [
37-
{ duration: '30s', target: refreshRPS}
39+
{ duration: warmUpTime, target: refreshRPS}
3840
],
3941
},
4042
identityMapWarmup: {
@@ -44,14 +46,14 @@ export const options = {
4446
preAllocatedVUs: 75,
4547
maxVUs: 150,
4648
stages: [
47-
{ duration: '30s', target: identityMapRPS}
49+
{ duration: warmUpTime, target: identityMapRPS}
4850
],
4951
},/*
5052
keySharingWarmup: {
5153
executor: 'ramping-vus',
5254
exec: 'keySharing',
5355
stages: [
54-
{ duration: '30s', target: keySharingVUs}
56+
{ duration: warmUpTime, target: keySharingVUs}
5557
],
5658
gracefulRampDown: '0s',
5759
},*/
@@ -61,11 +63,11 @@ export const options = {
6163
exec: 'tokenGenerate',
6264
rate: generateRPS,
6365
timeUnit: '1s',
64-
preAllocatedVUs: 500,
65-
maxVUs: 1000,
66+
preAllocatedVUs: 1500,
67+
maxVUs: 2000,
6668
duration: testDuration,
6769
gracefulStop: '0s',
68-
startTime: '30s',
70+
startTime: warmUpTime,
6971
},
7072
tokenRefresh: {
7173
executor: 'constant-arrival-rate',
@@ -76,7 +78,7 @@ export const options = {
7678
maxVUs: 400,
7779
duration: testDuration,
7880
gracefulStop: '0s',
79-
startTime: '30s',
81+
startTime: warmUpTime,
8082
},
8183
identityMap: {
8284
executor: 'constant-arrival-rate',
@@ -87,7 +89,7 @@ export const options = {
8789
maxVUs: 150,
8890
duration: testDuration,
8991
gracefulStop: '0s',
90-
startTime: '30s',
92+
startTime: warmUpTime,
9193
},/*
9294
keySharing:{
9395
executor: 'constant-vus',

performance-testing/uid2-operator/k6-token-generate-refresh-identitymap-scenario-2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export const options = {
4141
executor: 'ramping-arrival-rate',
4242
exec: 'identityMap',
4343
timeUnit: '1s',
44-
preAllocatedVUs: 500,
45-
maxVUs: 1000,
44+
preAllocatedVUs: 1000,
45+
maxVUs: 1500,
4646
stages: [
4747
{ duration: '30s', target: identityMapRPS}
4848
],
@@ -83,8 +83,8 @@ export const options = {
8383
exec: 'identityMap',
8484
rate: identityMapRPS,
8585
timeUnit: '1s',
86-
preAllocatedVUs: 500,
87-
maxVUs: 1000,
86+
preAllocatedVUs: 1000,
87+
maxVUs: 1500,
8888
duration: testDuration,
8989
gracefulStop: '0s',
9090
startTime: '30s',

0 commit comments

Comments
 (0)