Documentation
¶
Overview ¶
Package stats implements a generic benchmarking tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Bar = true
Bar is true.
Functions ¶
func StartPrint ¶
StartPrint prints the stats result.
Types ¶
type Client ¶
type Client interface {
// Call returns a request size, a response size and its ok status.
Call() (RequestSize int64, ResponseSize int64, Ok bool)
}
Client represents a client.
type Result ¶
type Result struct {
Clients int
Parallels int
TotalCalls int64
TotalTime float64
RequestsPerSecond float64
AverageTimePerRequest float64
FastestTimeForRequest float64
SlowestTimeForRequest float64
N001thThousandthTime float64
N010thThousandthTime float64
N050thThousandthTime float64
N100thThousandthTime float64
N250thThousandthTime float64
N500thThousandthTime float64
N750thThousandthTime float64
N900thThousandthTime float64
N950thThousandthTime float64
N990thThousandthTime float64
N999thThousandthTime float64
TotalRequestBodySizes int64
AverageBodySizePerRequest float64
RequestRateBytePerSecond float64
RequestRateMBytePerSecond float64
TotalResponseBodySizes int64
AverageBodySizePerResponse float64
ResponseRateBytePerSecond float64
ResponseRateMBytePerSecond float64
ResponseOk int64
ResponseOkPercentile float64
Errors int64
ErrorsPercentile float64
}
Result is a stats result.
Click to show internal directories.
Click to hide internal directories.