class
Cryload::LoadGenerator
- Cryload::LoadGenerator
- Reference
- Object
Defined in:
cryload/load_generator.crConstant Summary
-
BATCH_FLUSH_INTERVAL =
1.second -
BATCH_FLUSH_SIZE =
250_i64 -
DURATION_DRAIN_GRACE =
500.milliseconds -
PROGRESS_INTERVAL =
1.second
Constructors
Constructor Detail
def self.new(host : String, request_number : Int32 | Nil = nil, connections : Int32 = 10, duration : Time::Span | Nil = nil, output_format : String = "text", http_method : String = "GET", http_body : String | Nil = nil, http_headers : HTTP::Headers = HTTP::Headers.new, timeouts : Timeouts = Timeouts.new, insecure : Bool = false, rate_limit : Float64 | Nil = nil, follow_redirects : Bool = false, success_status_ranges : Array(Range(Int32, Int32)) = [200..299], ci_thresholds : CiThresholds = CiThresholds.new, urls : Array(URI) = [] of URI, warmup : Time::Span = Time::Span.zero, proxy : URI | Nil = nil, progress : Bool = true, random_path : Bool = false, disable_keepalive : Bool = false, latency_correction : Bool = true, workers : Int32 | Nil = nil)
#