benchmark

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdBenchmark

func NewCmdBenchmark(f *cmdutil.Factory) *cobra.Command

Types

type InputQueryFile

type InputQueryFile struct {
	Statements []QueryStatement `json:"statements"`
	MetaData   MetaData         `json:"metadata"`
}

func ReadTargetFiles

func ReadTargetFiles(directory string) ([]*InputQueryFile, error)

func (*InputQueryFile) Decode

func (f *InputQueryFile) Decode(b []byte) error

type MetaData

type MetaData struct {
	Table string `json:"table"`
}

type OutputFile

type OutputFile struct {
	MetaData OutputMetaData `json:"metadata"`
	Schema   []OutputSchema `json:"schema"`
}

type OutputMetaData

type OutputMetaData struct {
	Table string `json:"table"`
	Tag   string `json:"tag"`
	Size  string `json:"size"`
}

type OutputSchema

type OutputSchema struct {
	Name     string    `json:"name"`
	SQL      string    `json:"sql"`
	Min      float64   `json:"min"`
	Max      float64   `json:"max"`
	Median   float64   `json:"median"`
	StdDev   float64   `json:"std_dev"`
	ReadRow  uint64    `json:"read_row"`
	ReadByte uint64    `json:"read_byte"`
	Time     []float64 `json:"time"`
	Error    []string  `json:"error"`
	Mean     float64   `json:"mean"`
}

type QueryStatement

type QueryStatement struct {
	Name  string `json:"name"`
	Query string `json:"query"`
}

Jump to

Keyboard shortcuts

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