Skip to content

Commit 52dab5e

Browse files
committed
wip: Fix k6.js
1 parent 782a347 commit 52dab5e

File tree

2 files changed

+28
-32
lines changed

2 files changed

+28
-32
lines changed

benchmark/load/insecure-bank/k6.js

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,20 @@ export const options = function (variants) {
3535
let scenarios = {};
3636
for (const variant of Object.keys(variants)) {
3737
scenarios = {
38-
...{
39-
[`load--insecure-bank--${variant}--warmup`]: {
40-
executor: 'constant-vus', // https://grafana.com/docs/k6/latest/using-k6/scenarios/executors/#all-executors
41-
vus: 5,
42-
duration: '10s',
43-
gracefulStop: '2s',
44-
env: { ...variants[variant] }
45-
},
46-
[`load--insecure-bank--${variant}--high_load`]: {
47-
executor: 'constant-vus',
48-
vus: 5,
49-
startTime: '12s',
50-
duration: '20s',
51-
gracefulStop: '2s',
52-
env: { ...variants[variant] }
53-
},
38+
[`load--insecure-bank--${variant}--warmup`]: {
39+
executor: 'constant-vus', // https://grafana.com/docs/k6/latest/using-k6/scenarios/executors/#all-executors
40+
vus: 5,
41+
duration: '10s',
42+
gracefulStop: '2s',
43+
env: { ...variants[variant] }
44+
},
45+
[`load--insecure-bank--${variant}--high_load`]: {
46+
executor: 'constant-vus',
47+
vus: 5,
48+
startTime: '12s',
49+
duration: '20s',
50+
gracefulStop: '2s',
51+
env: { ...variants[variant] }
5452
},
5553
...scenarios
5654
};

benchmark/load/petclinic/k6.js

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,20 @@ export const options = function (variants) {
2626
let scenarios = {};
2727
for (const variant of Object.keys(variants)) {
2828
scenarios = {
29-
...{
30-
[`load--petclinic--${variant}--warmup`]: {
31-
executor: 'constant-vus', // https://grafana.com/docs/k6/latest/using-k6/scenarios/executors/#all-executors
32-
vus: 5,
33-
duration: '10s',
34-
gracefulStop: '2s',
35-
env: { ...variants[variant] }
36-
},
37-
[`load--petclinic--${variant}--high_load`]: {
38-
executor: 'constant-vus',
39-
vus: 5,
40-
startTime: '12s',
41-
duration: '20s',
42-
gracefulStop: '2s',
43-
env: { ...variants[variant] }
44-
},
29+
[`load--petclinic--${variant}--warmup`]: {
30+
executor: 'constant-vus', // https://grafana.com/docs/k6/latest/using-k6/scenarios/executors/#all-executors
31+
vus: 5,
32+
duration: '10s',
33+
gracefulStop: '2s',
34+
env: { ...variants[variant] }
35+
},
36+
[`load--petclinic--${variant}--high_load`]: {
37+
executor: 'constant-vus',
38+
vus: 5,
39+
startTime: '12s',
40+
duration: '20s',
41+
gracefulStop: '2s',
42+
env: { ...variants[variant] }
4543
},
4644
...scenarios
4745
};

0 commit comments

Comments
 (0)