Documentation
¶
Index ¶
Constants ¶
const ( // BblfshdLevel is a metrics tag that represents benchmarks being run over bblfshd container BblfshdLevel = "bblfshd" // DriverLevel is a metrics tag that represents benchmarks being run over language driver container DriverLevel = "driver" // TransformsLevel is a metrics tag that represents benchmarks being run over transformations layer TransformsLevel = "transforms" )
Variables ¶
This section is empty.
Functions ¶
func ExecCmd ¶
ExecCmd executes the specified Bash script. If execution fails, the error contains the combined output from stdout and stderr of the script. Do not use this for scripts that produce a large volume of output.
func GetFiles ¶
GetFiles is a simple "get files by pattern" function Purpose: filter required fixtures
func SplitStringMap ¶
SplitStringMap splits map[string]string to arrays of keys and arrays of values
Types ¶
type Benchmark ¶
Benchmark is a wrapper around parse.Benchmark and serves for formatting and arranging data before storing
func BenchmarkResultToBenchmark ¶
func BenchmarkResultToBenchmark(name string, b *testing.BenchmarkResult) Benchmark
BenchmarkResultToBenchmark converts b *testing.BenchmarkResult *parse.Benchmark for further storing
func NewBenchmark ¶
NewBenchmark is a constructor for Benchmark
type RunE ¶
RunE is a type that represents a standard Run function for cobra commands
func RunESilenced ¶
TODO(lwsanty): https://github.com/spf13/cobra/issues/340 RunESilenced is a wrapper over standard cobra's RunE function Purpose: hide the command usage output in the case of internal error inside the command