stats

package
v0.0.0-...-d3db570 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintHist

func PrintHist(data []int)

Accepts a sorted slice of durations in nanoseconds Prints a histogram to stdout

Types

type Stats

type Stats struct {
	Avg float64
	Min float64
	Max float64
	P50 float64
	P75 float64
	P90 float64
	P95 float64
	P99 float64
}

func Get

func Get(data []int) Stats

Accepts a sorted slice of durations in nanoseconds Returns a Stats struct of millisecond statistics

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL