load_test

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

load implements the load tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunLoadTest

func RunLoadTest(ctx context.Context, workers []Worker, terminalHeight uint64, maxDuration time.Duration) error

RunLoadTest runs a load test on the workers Assumes it's safe to call a worker in parallel

Types

type Worker

type Worker interface {
	// Name returns the name of the worker
	Name() string
	// AddLoad adds load to the underlying network of the worker.
	// Terminates without an error if the quit channel is closed.
	AddLoad(ctx context.Context, quit <-chan struct{}) error
	// GetLastAcceptedHeight returns the height of the last accepted block.
	GetLastAcceptedHeight(ctx context.Context) (uint64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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