lxd: github.com/lxc/lxd/lxd-benchmark/benchmark Index | Files

package benchmark

import "github.com/lxc/lxd/lxd-benchmark/benchmark"

Index

Package Files

batch.go benchmark.go operation.go report.go util.go

func CreateContainers Uses

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 Uses

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

DeleteContainers removes containers created by the benchmark.

func GetContainers Uses

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

GetContainers returns containers created by the benchmark.

func LaunchContainers Uses

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 Uses

func PrintServerInfo(c lxd.ContainerServer) error

PrintServerInfo prints out information about the server.

func StartContainers Uses

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

StartContainers starts containers created by the benchmark.

func StopContainers Uses

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

StopContainers stops containers created by the benchmark.

type CSVReport Uses

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

CSVReport reads/writes a CSV report file.

func (*CSVReport) AddRecord Uses

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

AddRecord adds a record to the report.

func (*CSVReport) Load Uses

func (r *CSVReport) Load() error

Load reads current content of the filename and loads records.

func (*CSVReport) Write Uses

func (r *CSVReport) Write() error

Write writes current records to file.

Package benchmark imports 12 packages (graph) and is imported by 7 packages. Updated 2018-02-21. Refresh now. Tools for package owners.