benchmark

package
Version: v0.0.0-...-a810e79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainers

func CreateContainers(c lxd.ContainerServer, count int, parallel int, fingerprint string, privileged bool) (time.Duration, error)

CreateContainers create the specified number of containers.

func DeleteContainers

func DeleteContainers(c lxd.ContainerServer, containers []api.Container, parallel int) (time.Duration, error)

DeleteContainers removes containers created by the benchmark.

func GetContainers

func GetContainers(c lxd.ContainerServer) ([]api.Container, error)

GetContainers returns containers created by the benchmark.

func LaunchContainers

func LaunchContainers(c lxd.ContainerServer, count int, parallel int, image string, privileged bool, start bool, freeze bool) (time.Duration, error)

LaunchContainers launches a set of containers.

func PrintServerInfo

func PrintServerInfo(c lxd.ContainerServer) error

PrintServerInfo prints out information about the server.

func StartContainers

func StartContainers(c lxd.ContainerServer, containers []api.Container, parallel int) (time.Duration, error)

StartContainers starts containers created by the benchmark.

func StopContainers

func StopContainers(c lxd.ContainerServer, containers []api.Container, parallel int) (time.Duration, error)

StopContainers stops containers created by the benchmark.

Types

type CSVReport

type CSVReport struct {
	Filename string
	// contains filtered or unexported fields
}

CSVReport reads/writes a CSV report file.

func (*CSVReport) AddRecord

func (r *CSVReport) AddRecord(label string, elapsed time.Duration) error

AddRecord adds a record to the report.

func (*CSVReport) Load

func (r *CSVReport) Load() error

Load reads current content of the filename and loads records.

func (*CSVReport) Write

func (r *CSVReport) Write() error

Write writes current records to file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL