public class HighLoadHttpGenerator
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 is 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
HighLoadHttpGenerator.Companion |
| Modifier and Type | Field and Description |
|---|---|
static HighLoadHttpGenerator.Companion |
Companion |
| Constructor and Description |
|---|
HighLoadHttpGenerator(java.lang.String host,
int port,
int numberOfConnections,
int queueSize,
boolean highPressure,
kotlin.jvm.functions.Function1<? super io.ktor.http.cio.RequestResponseBuilder,kotlin.Unit> builder)
This HTTP generator produces huge amount of requests however it doesn't validate responses and doesn't measure
any time characteristics.
|
HighLoadHttpGenerator(java.lang.String url,
java.lang.String host,
int port,
int numberConnections,
int queueSize,
boolean highPressure) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getHighPressure() |
java.lang.String |
getHost() |
int |
getNumberOfConnections() |
int |
getQueueSize() |
static void |
main(java.lang.String[] args) |
void |
mainLoop() |
void |
shutdown() |
void |
stop() |
public static HighLoadHttpGenerator.Companion Companion
public HighLoadHttpGenerator(java.lang.String host,
int port,
int numberOfConnections,
int queueSize,
boolean highPressure,
kotlin.jvm.functions.Function1<? super io.ktor.http.cio.RequestResponseBuilder,kotlin.Unit> builder)
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 is 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.
public HighLoadHttpGenerator(java.lang.String url,
java.lang.String host,
int port,
int numberConnections,
int queueSize,
boolean highPressure)
public void shutdown()
public void stop()
public void mainLoop()
public java.lang.String getHost()
public int getNumberOfConnections()
public int getQueueSize()
public boolean getHighPressure()
public static void main(java.lang.String[] args)