cmd

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL