Documentation ¶
Overview ¶
Package report generates human-readable benchmark reports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Percentiles ¶
Percentiles returns percentile distribution of float64 slice.
Types ¶
type Report ¶
type Report interface { Results() chan<- Result // Run returns results in print-friendly format. Run() <-chan string // Stats returns results in raw data. Stats() <-chan Stats }
Report processes a result stream until it is closed, then produces a string with information about the consumed result data.
func NewReportRate ¶
func NewReportSample ¶
func NewWeightedReport ¶ added in v3.2.0
NewWeightedReport returns a report that includes both weighted and unweighted statistics.
type Stats ¶
type Stats struct { AvgTotal float64 Fastest float64 Slowest float64 Average float64 Stddev float64 RPS float64 Total time.Duration ErrorDist map[string]int Lats []float64 TimeSeries TimeSeries }
Stats exposes results raw data.
type TimeSeries ¶
type TimeSeries []DataPoint
func (TimeSeries) Len ¶
func (t TimeSeries) Len() int
func (TimeSeries) Less ¶
func (t TimeSeries) Less(i, j int) bool
func (TimeSeries) String ¶
func (ts TimeSeries) String() string
func (TimeSeries) Swap ¶
func (t TimeSeries) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.