HighLoadHttpGenerator
class HighLoadHttpGenerator(host: String, port: Int, numberOfConnections: Int, queueSize: Int, highPressure: Boolean, builder: RequestResponseBuilder.() -> Unit)
Content copied to clipboard
This HTTP generator produces huge amount of requests however it doesn't validate responses and doesn't measure any time characteristics.
It provides two modes: when highPressure is false
then it parses response stream, counts status codes and enqueues new requests (in other words it means that it is waiting for responses but uses pipelining).
In highPressure mode the load generator only produces requests as much as possible and discards all server responses. In this mode it generates too high pressure so server could fail or get stuck due to long long tasks queue. If server could manage so much requests then RPS is much higher (up to 10x higher) in this mode but load generator provides absolutely no diagnostics.
Constructors
Link copied to clipboard
Link copied to clipboard
fun HighLoadHttpGenerator(host: String, port: Int, numberOfConnections: Int, queueSize: Int, highPressure: Boolean, builder: RequestResponseBuilder.() -> Unit)
Content copied to clipboard