Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LatencyPercentile ¶
type LatencyPercentile string
const ( Latency50 LatencyPercentile = "50%" Latency90 LatencyPercentile = "90%" Latency98 LatencyPercentile = "98%" Latency99 LatencyPercentile = "99%" LatencyAvg LatencyPercentile = "avg" )
type Runner ¶
type Runner struct {
URL string
Duration int
TargetLatency int
LatencyPercentile LatencyPercentile
ConcurrencySteps []int
CheckPrediction bool
Plot bool
}
type TestResult ¶
type TestResult struct {
Name string
Throughput float64
AvgLatency float64
Threads int
Connections int
Duration float64
Completed int
Successful int
Errors int
Sockets int
MinLatency float64
MaxLatency float64
Latency50 float64
Latency90 float64
Latency98 float64
Latency99 float64
}
name,throughput,avg. latency,threads,connections,duration,completed,successful,errors,sockets,min. latency,max. latency,50%,90%,98%,99%
func (*TestResult) Latency ¶
func (r *TestResult) Latency(percentile LatencyPercentile) float64
func (*TestResult) Print ¶
func (r *TestResult) Print(latencyPercentile LatencyPercentile) string
func (*TestResult) String ¶
func (r *TestResult) String() string
Click to show internal directories.
Click to hide internal directories.