Package io.ryos.rhino.sdk.runners
Class Rampup
- java.lang.Object
-
- io.ryos.rhino.sdk.runners.Rampup
-
public class Rampup extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.function.Function<reactor.core.publisher.Flux<T>,reactor.core.publisher.Flux<T>>
rampup(long startRps, long targetRps, java.time.Duration duration)
Defines a linear ramp up of the load beginning with the start rate until target rate is reached.
-
-
-
Method Detail
-
rampup
public static <T> java.util.function.Function<reactor.core.publisher.Flux<T>,reactor.core.publisher.Flux<T>> rampup(long startRps, long targetRps, java.time.Duration duration)
Defines a linear ramp up of the load beginning with the start rate until target rate is reached. Rates are defined in requests per second.- Parameters:
startRps
- start rate in request per secondtargetRps
- end rate in requests per secondduration
- time given to reach target rate- Returns:
- Function for a Flux transformation
-
-