Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIdNotFound = errors.New("id not found")
Functions ¶
func RandomByte ¶
RandomByte returns a random byte array with length
func RandomString ¶
RandomString return a random string with length
func Setup ¶
Setup starts the gobench program by creating a collect entity and database to store units
func SleepLinear ¶
SleepLinear put the program in sleep state for a certain time sleep time is a linear distribution with rps (rate per second) return the sleep time in micro seconds
func SleepPoisson ¶
SleepPoisson put the program in sleep state for a certain time sleep time is a poisson distribution with rps (rate per second) return the sleep time in micro seconds
Types ¶
Click to show internal directories.
Click to hide internal directories.