Documentation
¶
Overview ¶
Package bench provides utilities for collecting and analyzing performance measurements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bench ¶
type Bench struct {
// contains filtered or unexported fields
}
Bench tracks timing samples over a configurable duration for benchmarking.
func (*Bench) End ¶
func (b *Bench) End()
End records the total elapsed time since Start was called.
func (*Bench) IsTestFinished ¶
IsTestFinished reports whether the benchmark has run long enough and collected enough samples.
func (*Bench) SetDuration ¶
SetDuration sets the expected total duration for the benchmark run.
Click to show internal directories.
Click to hide internal directories.