Documentation
¶
Overview ¶
Package perfutil contains utilities needed for VM performance testing.
Index ¶
Constants ¶
const ContainerHomeDir = "/home/testuser"
ContainerHomeDir is the default home directory for test user in container.
Variables ¶
This section is empty.
Functions ¶
func RunCmd ¶
RunCmd runs cmd and returns its combined stdout and stderr. If an error is encountered, details are written to errWriter.
func ToTimeUnit ¶
ToTimeUnit returns time.Duration in unit as float64 numbers.
Types ¶
type HostBinaryRunner ¶
type HostBinaryRunner struct {
// contains filtered or unexported fields
}
HostBinaryRunner runs a binary compiled for host in container. It is useful to ensure the same binary is used when the performance of the binary itself matters. This avoids performance gap introduced by different compiler/compiler flags/optimization level etc. It copies needed dynamic library and dynamic linker from host to container so the binary can be executed.