Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InjectPerSec Behavior is not consistent #488

Closed
kweinberg1 opened this issue Oct 6, 2022 · 0 comments · Fixed by #508
Closed

InjectPerSec Behavior is not consistent #488

kweinberg1 opened this issue Oct 6, 2022 · 0 comments · Fixed by #508
Labels
bug Something isn't working v4

Comments

@kweinberg1
Copy link

We have a load test where we want to reach a specific amount of calls over an hour. The call rate is expected to be consistent over that duration of the test, so we're using InjectPerSec. However, have received inconsistent results at values greater than 10.

The first thing I've verified that the code executed in the scenario is not the problem. I am able to reproduce the issue with an empty step in the scenario:

                IStep injectPerSecStep = Step.Create(
                "InjectPerSec Step",
                context =>
                {
                    return Task.FromResult(Response.Ok(statusCode: 200));
                },
                timeOut);

With InjectPerSec set to 11 and 10 agents running concurrently, I would expect a two minute run to accumulate approximately 13,200 calls. NBomber will register significantly fewer calls than expected. The best case was about 4,500 tests. I expect NBomber to come at least close to hitting that target.

I'm currently using NBomber 3.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v4
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants