Documentation ¶
Index ¶
- type Result
- func (r *Result) AppendFail(t float64, err error)
- func (r *Result) AppendSuccess(t float64)
- func (r *Result) Error() string
- func (r *Result) Errors() []error
- func (r *Result) Failed() int64
- func (r *Result) Histogram(bins, width int) (string, error)
- func (r *Result) Latencies() []float64
- func (r *Result) PercentileLatency(p int) (float64, error)
- func (r *Result) Succeeded() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result represents to records the results (number of successes or failures and latency) of the tests performed by Otchkiss. All implemented methods are thread safe without note.
func WithCapacity ¶
WithCapacity returns Result instance by given capacity. When case of capacity shortage performance may be affected due to automatic memory allocation. However too large value may cause OOM.
func (*Result) AppendFail ¶
func (*Result) AppendSuccess ¶
Click to show internal directories.
Click to hide internal directories.