Versions in this module Expand all Collapse all v0 v0.5.0 Feb 19, 2026 Changes in this version + type BenchResult struct + AvgRespTime time.Duration + BytesPerSecond float64 + Duration time.Duration + FailReqs int64 + MaxRespTime time.Duration + MinRespTime time.Duration + ReqsPerSecond float64 + StatusCodes map[int]int64 + SuccessReqs int64 + TotalReqs int64 + URL string + func (r *BenchResult) String() string + type HTTPBench struct + Body []byte + Concurrency int + Duration time.Duration + Headers map[string]string + Method string + Number int + QPSLimit int + Timeout time.Duration + URL string + func NewHTTPBench(url string) *HTTPBench + func (b *HTTPBench) Run() (*BenchResult, error) + func (b *HTTPBench) SetBody(body []byte) *HTTPBench + func (b *HTTPBench) SetConcurrency(concurrency int) *HTTPBench + func (b *HTTPBench) SetDuration(duration time.Duration) *HTTPBench + func (b *HTTPBench) SetHeaders(headers map[string]string) *HTTPBench + func (b *HTTPBench) SetMethod(method string) *HTTPBench + func (b *HTTPBench) SetNumber(number int) *HTTPBench + func (b *HTTPBench) SetQPSLimit(qps int) *HTTPBench + func (b *HTTPBench) SetShowProgress(show bool) *HTTPBench + func (b *HTTPBench) SetTimeout(timeout time.Duration) *HTTPBench