cmd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUser added in v0.1.6

func AuthenticateUser(host string, clientId string, clientSecret string, environment string) (string, string, string)

func CalculatePercentile added in v0.1.6

func CalculatePercentile(details []float64, p50 bool, p95 bool, p99 bool) runner.DataPointAgg

func CalculatePercentiles added in v0.1.6

func CalculatePercentiles(details map[time.Duration][]float64, p50 bool, p95 bool, p99 bool) []runner.DataPoint

func Execute

func Execute()

func GroupLatencies added in v0.1.6

func GroupLatencies(details []runner.ResultDetail, window time.Duration) map[time.Duration][]float64

func RunBenchmarks added in v0.1.6

func RunBenchmarks(bfs []BenchmarkFunction) *runner.Report

Types

type BenchmarkFunction added in v0.1.6

type BenchmarkFunction struct {
	F        *runner.Requester
	Duration time.Duration
	Type     string
}

func BenchmarkPing added in v0.1.6

func BenchmarkPing(grpcHost string, authHeaders []runner.Option) []BenchmarkFunction

func BenchmarkQuery added in v0.1.6

func BenchmarkQuery(
	grpcHost string,
	globalHeaders []runner.Option,
	queryInputs []byte,
	queryOutputs []*commonv1.OutputExpr,
	onlineQueryContext *commonv1.OnlineQueryContext,
	rps uint,
	benchmarkDuration time.Duration,
	rampDuration time.Duration,
	scheduleFile string,
) []BenchmarkFunction

func BenchmarkQueryFromFile added in v0.1.6

func BenchmarkQueryFromFile(
	grpcHost string,
	globalHeaders []runner.Option,
	records [][]byte,
	outputs []*commonv1.OutputExpr,
	onlineQueryContext *commonv1.OnlineQueryContext,
	rps uint,
	benchmarkDuration time.Duration,
	rampDuration time.Duration,
	scheduleFile string,
) []BenchmarkFunction

func BenchmarkUploadFeatures added in v0.1.6

func BenchmarkUploadFeatures(
	grpcHost string,
	globalHeaders []runner.Option,
	uploadFeaturesFile string,
	rps uint,
	benchmarkDuration time.Duration,
	rampDuration time.Duration,
	scheduleFile string,
) []BenchmarkFunction

type PlannerOptions added in v0.1.6

type PlannerOptions struct {
	UseNativeSql          bool
	StaticUnderscoreExprs bool
}

Jump to

Keyboard shortcuts

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