Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoMode is raised when tehre is no mode token after \benchmark. ErrNoMode = errors.New("failed to parse \\benchmark line, missing mode") // ErrNoName is raised when there is no token after \name. ErrNoName = errors.New("missing name after \\name token") )
Functions ¶
func RandFloat64Between ¶
func RandStringBytes ¶
Types ¶
type BenchType ¶
type BenchType int
BenchType determines if the particular benchmark should be run several times or only once.
type Result ¶
type Result struct {
Min time.Duration
Max time.Duration
ExecutionTimes []time.Duration
TotalExecutionTime time.Duration
TotalExecutionTimeMult time.Duration
Start time.Time
End time.Time
Duration time.Duration
TotalExecutionCount uint64
}
Result encapsulates the metrics of a benchmark run
Click to show internal directories.
Click to hide internal directories.