cmd

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Copyright © 2023 Redis Performance Group performance <at> redis <dot> com

Copyright © 2023 Redis Performance Group performance <at> redis <dot> com

Copyright © 2023 Redis Performance Group performance <at> redis <dot> com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	XREADGROUP           int = 0
	XADD                     = 1
	XACK                     = 2
	EXPIRE                   = 3
	DEL                      = 4
	XGROUPCREATE             = 5
	XGROUPCREATECONSUMER     = 6
	TTL                      = 7
	XLEN                     = 8
)
View Source
const (
	DefaultReadBuffer  int = 2 << 13
	DefaultWriteBuffer int = 2 << 13
)

Variables

View Source
var GitDirty string = "0"
View Source
var GitSHA1 string = ""

Vars only for git sha and diff handling

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type GraphQueryDatapoint added in v0.0.5

type GraphQueryDatapoint struct {
	ClientDurationMicros  int64
	Error                 bool
	Empty                 bool
	ConsumerGroupsCreated uint64
}

type TestResult added in v0.0.5

type TestResult struct {
	Metadata   string `json:"Metadata"`
	Clients    uint   `json:"Clients"`
	MaxRps     uint64 `json:"MaxRps"`
	RandomSeed int64  `json:"RandomSeed"`

	StartTime      int64 `json:"StartTime"`
	EndTime        int64 `json:"EndTime"`
	DurationMillis int64 `json:"DurationMillis"`

	// Populated after benchmark
	// Benchmark Totals
	Totals map[string]float64 `json:"Totals"`

	// Overall Rates
	OverallQueryRates []float64 `json:"OverallQueryRates"`

	// Overall Client Quantiles
	OverallClientLatencies []map[string]float64 `json:"OverallClientLatencies"`

	// Per second ( tick ) client stats
	ClientRunTimeStats map[int64]interface{} `json:"ClientRunTimeStats"`

	// Per second ( tick ) client stats
	CmdRateTs map[string][]int `json:"CmdRateTs"`
	// contains filtered or unexported fields
}

func NewTestResult added in v0.0.5

func NewTestResult(metadata string, clients uint, maxRps uint64) *TestResult

func (*TestResult) FillDurationInfo added in v0.0.5

func (r *TestResult) FillDurationInfo(startTime time.Time, endTime time.Time, duration time.Duration)

func (*TestResult) SetUsedRandomSeed added in v0.0.5

func (r *TestResult) SetUsedRandomSeed(seed int64) *TestResult

Jump to

Keyboard shortcuts

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