Skip to content

Commit ad9fc7d

Browse files
author
Samin Rahman
committed
Increased large batch odds in scenario 3 to 2%
1 parent 82511e2 commit ad9fc7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const clientKey = __ENV.CLIENT_KEY;
1010
const generateRPS = 450000;
1111
const refreshRPS = 25000;
1212
const identityMapRPS = 1500;
13+
const largeBatchChance = 0.02;
1314

1415
const warmUpTime = '10m'
1516
const testDuration = '20m'
@@ -206,7 +207,7 @@ export async function identityMap(data) {
206207
const endpoint = '/v2/identity/map';
207208
if ((data.identityMap == null) || (data.identityMap.time < (Date.now() - 45000))) {
208209
var dii = 100;
209-
if (Math.random() < 0.01) {
210+
if (Math.random() < largeBatchChance) {
210211
dii = 5000;
211212
}
212213
data.identityMap = await generateIdentityMapRequestWithTime(dii);;

0 commit comments

Comments
 (0)