NBomber icon indicating copy to clipboard operation
NBomber copied to clipboard

Unable to inject less than 1 request per second

Open neilsyrett opened this issue 3 years ago • 2 comments
trafficstars

The rate parameter on the InjectPerSec() method only accepts integers. This means I am unable to inject less than 1 request per second. It would be useful to be able to use a decimal injection rate. This would bring parity with the Gatling constantUsersPerSec method.

neilsyrett avatar Dec 01 '21 12:12 neilsyrett

I'd also like to be able to inject less than 1 request per second

darraghjones avatar Sep 08 '22 22:09 darraghjones

Hi @neilsyrett , @darraghjones

It's on my list of things to add. I also thought about adding something like "inject total requests"

AntyaDev avatar Sep 13 '22 05:09 AntyaDev

It's very typical for us to target a number of calls over a period of time -- usually described as "calls per hour".

Since NBomber currently requires us to start X agents, tests will behave differently based on the number of agents, which feels like an unintended side-effect. If we're instructing the coordinator to create some concurrency, then having a "inject total requests equally over the scenario's duration" behavior would be really beneficial.

kweinberg1 avatar Oct 06 '22 17:10 kweinberg1

Hi @darraghjones @kweinberg1 @neilsyrett I will try to add a new simulation to cover this case

AntyaDev avatar Oct 30 '22 17:10 AntyaDev

I started working on this. I hope next week I will release it.

AntyaDev avatar Nov 26 '22 05:11 AntyaDev

Hi @darraghjones, @kweinberg1, @neilsyrett You can find it in the latest NBomber v4 beta.

AntyaDev avatar Dec 13 '22 19:12 AntyaDev