Single Iteration only for 100 users not working as expected

Hi all!
I want to perform a test where 100 VU will perform only one iteration each.

I couldn’t manage to achieve it using the following configurations:

1.
export const options = { vus: 100, duration: ‘30s’ }
results:
iterations…: 582 16.601238/s
vus…: 1 min=1 max=100

2
export const options = { vus: 100, iterations: 100 }
results:
iterations…: 100 17.248174/s
vus…: 17 min=17 max=94

3
export const options = {
scenarios: {
fixed_100_users: {
executor: ‘per-vu-iterations’,
vus: 100,
iterations: 1,
maxDuration: ‘30s’,
},
},
}
results:
iterations…: 100 16.460846/s
vus…: 3 min=3 max=98

4
export const options = {
scenarios: {
fixed_100_users: {
executor: ‘shared-iterations’,
vus: 100,
iterations: 100,
maxDuration: ‘30s’,
},
},
}
results:
iterations…: 100 16.569275/s
vus…: 1 min=1 max=95

Any ideas please?
Thank you!

Hi @pantelisvardakas !

Welcome to the community forums! :wave:

Can I clarify a bit? When you say:

I want to perform a test where 100 VU will perform only one iteration each.

Do you mean you want to give some endpoint an instant load of 100 users? And what are your concerns if the same k6 virtual user performs the iteration?

Thanks!

@olegbespalov i think i found the solution.
The tests working as expected but I misunderstood the results. After checking the documentation i clarified that vus is of type Gauge and displayed the current value not the total.
If you check my post you will see that the results are displaying a different value than the one I expected. But again was my misunderstanding!
Anyway thank you for your question!

1 Like

No worries, I’m glad that it’s sorted!