execution

package
v0.0.0-...-b8497f2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultService

type DefaultService struct {
	// contains filtered or unexported fields
}

DefaultService is the default implementation of the execution service.

func (*DefaultService) RunBenchmark

RunBenchmark runs the benchmark.

type ExecutionConfig

type ExecutionConfig struct {
	TargetDB    string
	TargetQPS   int
	Concurrency int
}

ExecutionConfig holds the configuration for a benchmark run.

type Service

type Service interface {
	RunBenchmark(ctx context.Context, workload *models.BenchmarkWorkload, cfg ExecutionConfig) (*models.BenchmarkResult, error)
}

Service is the application service for the execution phase.

func NewService

func NewService(registry *plugin_registry.Registry) Service

NewService creates a new DefaultService.

Jump to

Keyboard shortcuts

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