Documentation ¶
Index ¶
- func After(n int, suffix string) <-chan time.Time
- func Now() func() T
- func Trunc(d time.Duration, digits int) string
- type B
- func (b *B) Add(t T, value ...float64)
- func (b B) Avg() (t time.Duration, k float64)
- func (b B) Avgk() float64
- func (b B) Avgt() time.Duration
- func (b B) Cap() int
- func (b B) Format(state fmt.State, verb rune)
- func (b B) Len() int
- func (b B) Ordered() []T
- func (b B) Std() (t time.Duration, k float64)
- func (b B) Stdk() float64
- func (b B) Stdt() time.Duration
- func (b B) Unordered() []T
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type B ¶
type B struct {
// contains filtered or unexported fields
}
B is a benchmark ring.
Non-zero length B's function as a ring, effectively rewriting old frames with the new ones. Zero length B's grow normally.
Click to show internal directories.
Click to hide internal directories.