perf

package
v0.0.0-...-8acee00 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var K9sBenchDir = filepath.Join(os.TempDir(), fmt.Sprintf("k9s-bench-%s", config.MustK9sUser()))

K9sBenchDir directory to store K9s Benchmark files.

Functions

This section is empty.

Types

type Benchmark

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

Benchmark puts a workload under load.

func NewBenchmark

func NewBenchmark(base string, cfg config.BenchConfig) (*Benchmark, error)

NewBenchmark returns a new benchmark.

func (*Benchmark) Cancel

func (b *Benchmark) Cancel()

Cancel kills the benchmark in progress.

func (*Benchmark) Canceled

func (b *Benchmark) Canceled() bool

Canceled checks if the benchmark was canceled.

func (*Benchmark) Run

func (b *Benchmark) Run(cluster string, done func())

Run starts a benchmark,

Jump to

Keyboard shortcuts

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