Documentation ¶
Index ¶
- func CreateAliveContainers(client *docker.Client, num int) []string
- func CreateContainers(client *docker.Client, num int) []string
- func CreateDeadContainers(client *docker.Client, num int) []string
- func DoInspectContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, ...) []int
- func DoListContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, listAll bool) []int
- func DoParallelContainerStartBenchmark(client *docker.Client, qps float64, testPeriod time.Duration, ...) []int
- func DoParallelContainerStopBenchmark(client *docker.Client, qps float64, routineNumber int) []int
- func DoParallelInspectContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, routineNumber int, ...) []int
- func DoParallelListContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, routineNumber int, ...) []int
- func Ftoas(nums ...float64) []string
- func GetContainerIDs(client *docker.Client) (containerIDs []string)
- func GetContainerNum(client *docker.Client, all bool) int
- func Itoas(nums ...int) []string
- func LogEVar(vars map[string]interface{})
- func LogLabels(labels ...string)
- func LogResult(latencies []int, variables ...string)
- func LogTitle(title string)
- func RemoveContainers(client *docker.Client, ids []string)
- func StartContainers(client *docker.Client, ids []string)
- func StopContainers(client *docker.Client, ids []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAliveContainers ¶
CreateAliveContainers creates num of containers and also starts them
func CreateContainers ¶
CreateContainers creates num of containers
func CreateDeadContainers ¶
CreateDeadContainers creates num of containers but not starts them
func DoInspectContainerBenchmark ¶
func DoInspectContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, containerIDs []string) []int
DoInspectContainerBenchmark does periodically InspectContainer with specific interval, returns latencies of all the calls in nanoseconds
func DoListContainerBenchmark ¶
func DoListContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, listAll bool) []int
DoListContainerBenchmark does periodically ListContainers with specific interval, returns latencies of all the calls in nanoseconds
func DoParallelContainerStartBenchmark ¶
func DoParallelContainerStartBenchmark(client *docker.Client, qps float64, testPeriod time.Duration, routineNumber int) []int
DoParallelContainerStartBenchmark starts routineNumber of goroutines and let them start containers, returns latencies of all the starting calls in nanoseconds. There is a global rate limit on starting calls per second.
func DoParallelContainerStopBenchmark ¶
DoParallelContainerStopBenchmark starts routineNumber of goroutines and let them stop containers, returns latencies of all the stopping calls in nanoseconds. There is a global rate limit on stopping calls per second.
func DoParallelInspectContainerBenchmark ¶
func DoParallelInspectContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, routineNumber int, containerIDs []string) []int
DoParallelInspectContainerBenchmark starts routineNumber of goroutines and let them do DoInspectContainerBenchmark, returns latencies of all the calls in nanoseconds
func DoParallelListContainerBenchmark ¶
func DoParallelListContainerBenchmark(client *docker.Client, interval, testPeriod time.Duration, routineNumber int, all bool) []int
DoParallelListContainerBenchmark starts routineNumber of goroutines and let them do DoListContainerBenchmark, returns latencies of all the calls in nanoseconds
func GetContainerIDs ¶
GetContainerIDs returns all the container ids in the system
func GetContainerNum ¶
GetContainerNum returns container number in the system
func LogEVar ¶
func LogEVar(vars map[string]interface{})
LogEVar prints all the environemnt variables
func LogTitle ¶
func LogTitle(title string)
LogTitle prints an empty line and the title of the benchmark
func RemoveContainers ¶
RemoveContainers removes all the containers in ids slice
func StartContainers ¶
StartContainers starts all the containers in ids slice
func StopContainers ¶
StopContainers stops all the containers in ids slice
Types ¶
This section is empty.