cmd

package
v0.0.0-...-4c6228e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOrigin                 = "http://localhost:8080"
	DefaultDatasetConfigPath      = "datasets.yml"
	DefaultBatchSize              = 100
	DefaultQueriesCount           = -1
	DefaultQueriesInterval        = -1
	DefaultMultiplyProperties     = 1
	DefaultFilterObjectPercentage = 0
	DefaultAlpha                  = 0
	DefaultRanking                = "ranked_fusion"
	DefaultVectorizer             = false
)

Variables

View Source
var (
	Origin                 string
	DatasetConfigPath      string
	BatchSize              int
	QueriesCount           int
	MultiplyProperties     int
	FilterObjectPercentage int
	QueriesInterval        int
	Alpha                  float32
	Ranking                string
	Vectorizer             bool
)

Functions

func Execute

func Execute()

Types

type IndexingExperimentResult

type IndexingExperimentResult struct {
	// The name of the dataset
	Dataset string
	// The number of objects in the dataset
	Objects int
	// The batch size used for importing
	MultiplyProperties int
	// Docs where vectorized
	Vectorize bool
	// The time it took to import the dataset
	ImportTime float64
	// Average time to import 1000 objects
	ImportTimePer1000 float64
	// Objects per second
	ObjectsPerSecond float64
}

type QueryExperimentResult

type QueryExperimentResult struct {
	// The name of the dataset
	Dataset string
	// Dataset size
	Objects int
	// Query count
	Queries int
	// Filter object percentage
	FilterObjectPercentage int
	// Alpha
	Alpha float32
	// Ranking
	Ranking string
	// The time it took to query the dataset
	TotalQueryTime float64
	// Average time to query 1000 objects
	QueryTimePer1000 float64
	// Average time to query per 1000 indexed objects
	QueryTimePer1000000Documents float64
	// Objects per second
	QueriesPerSecond float64
	// Min query time
	Min time.Duration
	// Max query time
	Max time.Duration
	// P50 query time
	P50 time.Duration
	// P90 query time
	P90 time.Duration
	// P95 query time
	P99 time.Duration
	// Scores
	Scores lib.Scores
}

Jump to

Keyboard shortcuts

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