benchmark

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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