cmd

package
v0.0.0-...-0cbb0fd Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: BSD-3-Clause Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nouns = []string{}/* 1524 elements not displayed */

Functions

func Execute

func Execute()

Types

type Batch

type Batch struct {
	Vectors [][]float32
	Offset  int
	Filters []int
}

Batch of vectors and offset for writing to Weaviate

type CompressionType

type CompressionType byte
const (
	CompressionTypePQ CompressionType = 0
	CompressionTypeSQ CompressionType = 1
)

type Config

type Config struct {
	Mode                   string
	Origin                 string
	Queries                int
	QueriesFile            string
	Parallel               int
	Limit                  int
	ClassName              string
	IndexType              string
	ReplicationFactor      int
	API                    string
	HttpAuth               string
	Dimensions             int
	DB                     string
	WhereFilter            string
	OutputFormat           string
	OutputFile             string
	BenchmarkFile          string
	BatchSize              int
	Shards                 int
	DistanceMetric         string
	MaxConnections         int
	Labels                 string
	LabelMap               map[string]string
	EfConstruction         int
	EfArray                string
	QueryOnly              bool
	QueryDuration          int
	BQ                     bool
	Cache                  bool
	RescoreLimit           int
	PQ                     string
	SQ                     string
	SkipAsyncReady         bool
	SkipTombstonesEmpty    bool
	SkipMemoryStats        bool
	PQRatio                uint
	PQSegments             uint
	TrainingLimit          int
	Tenant                 string
	StartTenantNum         int
	NumTenants             int
	ExistingSchema         bool
	HttpOrigin             string
	HttpScheme             string
	UpdatePercentage       float64
	UpdateRandomized       bool
	UpdateIterations       int
	Offset                 int
	CleanupIntervalSeconds int
	QueryDelaySeconds      int
	DynamicThreshold       int
	Filter                 bool
	FlatSearchCutoff       int
	FilterStrategy         string
}

func (*Config) Validate

func (c *Config) Validate() error

type Memstats

type Memstats struct {
	HeapAllocBytes float64 `json:"heap_alloc_bytes"`
	HeapInuseBytes float64 `json:"heap_inuse_bytes"`
	HeapSysBytes   float64 `json:"heap_sys_bytes"`
}

type Neighbors

type Neighbors [][]int

type Number

type Number interface {
	constraints.Float | constraints.Integer
}

type Queries

type Queries [][]float32

type QueryWithNeighbors

type QueryWithNeighbors struct {
	Query     []byte
	Neighbors []int
}

type Results

type Results struct {
	Min               time.Duration
	Max               time.Duration
	Mean              time.Duration
	Took              time.Duration
	QueriesPerSecond  float64
	Percentiles       []time.Duration
	PercentilesLabels []int
	Total             int
	Successful        int
	Failed            int
	Parallelization   int
	Recall            float64
}

func (Results) WriteJSONTo

func (r Results) WriteJSONTo(w io.Writer) (int, error)

func (Results) WriteTextTo

func (r Results) WriteTextTo(w io.Writer) (int64, error)

type ResultsJSONBenchmark

type ResultsJSONBenchmark struct {
	Api              string  `json:"api"`
	Ef               int     `json:"ef"`
	EfConstruction   int     `json:"efConstruction"`
	MaxConnections   int     `json:"maxConnections"`
	Mean             float64 `json:"meanLatency"`
	P99Latency       float64 `json:"p99Latency"`
	QueriesPerSecond float64 `json:"qps"`
	Shards           int     `json:"shards"`
	Parallelization  int     `json:"parallelization"`
	Limit            int     `json:"limit"`
	ImportTime       float64 `json:"importTime"`
	RunID            string  `json:"run_id"`
	Dataset          string  `json:"dataset_file"`
	Recall           float64 `json:"recall"`
	HeapAllocBytes   float64 `json:"heap_alloc_bytes"`
	HeapInuseBytes   float64 `json:"heap_inuse_bytes"`
	HeapSysBytes     float64 `json:"heap_sys_bytes"`
}

Weaviate https://github.com/weaviate/weaviate-chaos-engineering/tree/main/apps/ann-benchmarks style format mixed camel / snake case for compatibility

Jump to

Keyboard shortcuts

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