Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
func NewHistogram ¶
func (*Histogram) GetPercentileAndReset ¶
atomic function to get percentile and clear values
func (*Histogram) Percentile ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(option *RunnerOpts) *Runner
type RunnerOpts ¶
type RunnerOpts struct {
Threads int `long:"threads" description:"number of threads to use" default:"1"`
Events uint64 `long:"events" description:"limit for total number of events" default:"0"`
Time int `long:"time" description:"limit for total execution time in seconds" default:"10"`
ReportInterval int `` /* 162-byte string literal not displayed */
Histogram string `long:"histogram" choice:"on" choice:"off" description:"print latency histogram in report" default:"off"` //nolint:staticcheck
Percentile int `long:"percentile" description:"percentile to calculate in latency statistics (1-100)" default:"95"`
}
Click to show internal directories.
Click to hide internal directories.