bench

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

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

Benchmark defines a load testing engine

func NewBenchmark

func NewBenchmark(workersCount int, duration time.Duration) *Benchmark

NewBenchmark creates an instance of Loader

func (*Benchmark) BenchAsk

func (b *Benchmark) BenchAsk(ctx context.Context) error

BenchAsk sends messages to a random actor

func (*Benchmark) BenchTell

func (b *Benchmark) BenchTell(ctx context.Context) error

BenchTell sends messages to a random actor

func (*Benchmark) Start

func (b *Benchmark) Start(ctx context.Context) error

Start starts the Benchmark

func (*Benchmark) Stop

func (b *Benchmark) Stop(ctx context.Context) error

Stop stops the benchmark

type Benchmarker

type Benchmarker struct {
}

func (*Benchmarker) PostStop

func (p *Benchmarker) PostStop(context.Context) error

func (*Benchmarker) PreStart

func (p *Benchmarker) PreStart(context.Context) error

func (*Benchmarker) Receive

func (p *Benchmarker) Receive(ctx *actors.ReceiveContext)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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