HighLoadHttpGenerator

class HighLoadHttpGenerator(val host: String, port: Int, val numberOfConnections: Int, val queueSize: Int, val highPressure: Boolean, builder: RequestResponseBuilder.() -> Unit)

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
fun HighLoadHttpGenerator(url: String, host: String, port: Int, numberConnections: Int, queueSize: Int, highPressure: Boolean)
Link copied to clipboard
fun HighLoadHttpGenerator(host: String, port: Int, numberOfConnections: Int, queueSize: Int, highPressure: Boolean, builder: RequestResponseBuilder.() -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun mainLoop()
Link copied to clipboard
fun shutdown()
Link copied to clipboard
fun stop()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard