benchmarks

package
v0.0.0-...-5d73d95 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const NumIntervals = 10000 + int(time.Minute/interval) + 1 // The longest-range test we run has 10000 steps with a 1m range selector, so make sure we have slightly more data than that.
View Source
const UserID = "benchmark-tenant"

Variables

View Source
var MetricSizes = []int{1, 100, 2000}

Functions

func StartIngesterAndLoadData

func StartIngesterAndLoadData(rootDataDir string, metricSizes []int) (string, func(), error)

Types

type BenchCase

type BenchCase struct {
	Expr             string
	Steps            int
	InstantQueryOnly bool
}

func TestCases

func TestCases(metricSizes []int) []BenchCase

These test cases are taken from https://github.com/prometheus/prometheus/blob/main/promql/bench_test.go and enhanced/added to.

func (BenchCase) Name

func (c BenchCase) Name() string

func (BenchCase) Run

func (c BenchCase) Run(ctx context.Context, t testing.TB, start, end time.Time, interval time.Duration, engine promql.QueryEngine, q storage.Queryable) (*promql.Result, func())

Jump to

Keyboard shortcuts

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