Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
CheckError wraps a function call which returns an error. If an error is returned, then `os.Exit(1)` is called
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetExporter ¶
func GetExporter(config *define.Config) define.Exporterable
GetExporter takes in the current Config and returns an appropriate Exporterable.
func LogVersion ¶
func LogVersion()
LogVersion tries to log the current version of gobench at the info level.
func RunBenchmark ¶
func RunBenchmark(bench define.Benchmarkable)
RunBenchmark actually performs the task of running a benchmark.
func SetLogLevel ¶
SetLogLevel sets the current log level based on the given Config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.