Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RootCmd creates flags RootCmd = &cobra.Command{ Use: "zstorbench", Short: "A tool for benchmarking (and profiling) a zstor client", PersistentPreRun: func(*cobra.Command, []string) { if rootCfg.debugLog { log.SetLevel(log.DebugLevel) log.Debug("Debug logging enabled") } }, RunE: rootFunc, } )
Functions ¶
This section is empty.
Types ¶
type OutputFormat ¶
type OutputFormat struct {
Scenarios map[string]ScenarioOutputFormat
}
OutputFormat represents the output format of a full benchmark
func NewOutputFormat ¶
func NewOutputFormat() OutputFormat
NewOutputFormat returns a new OutputFormat
type ScenarioOutputFormat ¶
type ScenarioOutputFormat struct { Results []*bencher.Result `yaml:"results,omitempty"` ScenarioConf config.Scenario `yaml:"scenario,omitempty"` Error string `yaml:"error,omitempty"` }
ScenarioOutputFormat represents a scenario result for outputting
func FormatOutput ¶
func FormatOutput(results []*bencher.Result, scenarioConfig config.Scenario, err error) ScenarioOutputFormat
FormatOutput formats the output of the benchmarking scenario
Click to show internal directories.
Click to hide internal directories.