runbenchmark

package
v0.0.0-...-b6f4f4c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Command creates a new run-bench command instance.

func Handler

func Handler(ctx context.Context, cfg Config, deps *Deps) (*act.NoOutput, error)

Handler contains the business logic for the run-bench command. This function does not depend on Cobra and can be tested independently.

Types

type Config

type Config struct {
	API               string
	Local             bool
	BenchmarkPath     string
	BootstrapBucket   string
	BootstrapVersion  string
	GitCacheURL       string
	ExecutionMode     schema.ExecutionMode
	Format            string
	Verbose           bool
	Async             bool
	TaskQueue         string
	TaskQueueEmail    string
	UseNetworkProxy   bool
	UseSyscallMonitor bool
	OverwriteMode     string
	MaxConcurrency    int
}

Config holds all configuration for the run-bench command.

func (Config) Validate

func (c Config) Validate() error

Validate ensures the configuration is valid.

type Deps

type Deps struct {
	IO cli.IO
}

Deps holds dependencies for the command.

func InitDeps

func InitDeps(context.Context) (*Deps, error)

InitDeps initializes Deps.

func (*Deps) SetIO

func (d *Deps) SetIO(cio cli.IO)

Jump to

Keyboard shortcuts

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