Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Measurement ¶
type Measurement struct { Iterations uint64 // Number of iterations done StartTime time.Time // time of measurement startup }
Measurement measures throughput with StartMeasurement / AddIterations
func NewMeasurement ¶
func NewMeasurement() *Measurement
NewMeasurement creates and starts a Throughput measurment
func (*Measurement) AddIterations ¶
func (m *Measurement) AddIterations(nb uint64)
AddIterations adds iterations to the Throughput measurment GetThroughput and AddIterations can be called in different goroutines
func (*Measurement) GetThroughput ¶
func (m *Measurement) GetThroughput() Result
GetThroughput returns the number of iterations per second returns Throughput, iterations, duration GetThroughput and AddIterations can be called in different goroutines
func (*Measurement) StartMeasurement ¶
func (m *Measurement) StartMeasurement()
StartMeasurement starts the Throughput measurment
Click to show internal directories.
Click to hide internal directories.