load

package
v1.0.10-0...-7349ede Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 11 Imported by: 0

README

Load tests

Local run

Start BE API + loadtest migrations data

docker-compose -f be-api-compose-loadtest.yaml build
docker-compose -f be-api-compose-loadtest.yaml up

Run suite

go run load/cmd/load/main.go -gen_config load/gen_cfg/generator_block_explorer.yaml -config load/run_configs/${SUITE_NAME}.yaml

see results.csv/runners.log after test

Down compose to clear data in pg

docker-compose -f be-api-compose-loadtest.yaml down

Documentation

Index

Constants

View Source
const (
	GetPulseLabel              = "get_pulse"
	GetPulsesLabel             = "get_pulses"
	GetJetDropByIDLabel        = "get_jet_drop_by_id"
	GetJetDropsByJetIDLabel    = "get_jet_drops_by_jet_id"
	GetRecordsLabel            = "get_records"
	GetLifelineLabel           = "get_lifeline"
	SearchLabel                = "search"
	GetJetDropsByPulseNumLabel = "get_jet_drops_by_pulse_number"
)

Variables

This section is empty.

Functions

func AttackerFromName

func AttackerFromName(name string) loadgen.Attack

func CheckFromName

func CheckFromName(name string) loadgen.RuntimeCheckFunc

func DefaultLimit

func DefaultLimit(a loadgen.Attack) int32

func GetJetDropsByID

func GetJetDropsByID(a *GetJetDropByIDAttack, id string) error

func GetRecordsByID

func GetRecordsByID(a *GetRecordsAttack, id string) error

func NewCSVWriter

func NewCSVWriter(name string) (*csv.Writer, func() error)

func NewGeneratedBEClient

func NewGeneratedBEClient(a loadgen.Attack) *client.APIClient

Types

type GetJetDropByIDAttack

type GetJetDropByIDAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*GetJetDropByIDAttack) Clone

func (*GetJetDropByIDAttack) Do

func (*GetJetDropByIDAttack) Setup

type GetJetDropsByJetIDAttack

type GetJetDropsByJetIDAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*GetJetDropsByJetIDAttack) Clone

func (*GetJetDropsByJetIDAttack) Do

func (*GetJetDropsByJetIDAttack) Setup

type GetJetDropsByPulseNumberAttack

type GetJetDropsByPulseNumberAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*GetJetDropsByPulseNumberAttack) Clone

func (*GetJetDropsByPulseNumberAttack) Do

func (*GetJetDropsByPulseNumberAttack) Setup

type GetLifelineAttack

type GetLifelineAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*GetLifelineAttack) Clone

func (*GetLifelineAttack) Do

func (*GetLifelineAttack) Setup

type GetPulseAttack

type GetPulseAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*GetPulseAttack) Clone

func (*GetPulseAttack) Do

func (*GetPulseAttack) Setup

type GetPulsesAttack

type GetPulsesAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*GetPulsesAttack) Clone

func (*GetPulsesAttack) Do

func (*GetPulsesAttack) Setup

type GetRecordsAttack

type GetRecordsAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*GetRecordsAttack) Clone

func (*GetRecordsAttack) Do

func (*GetRecordsAttack) Setup

type SearchAttack

type SearchAttack struct {
	loadgen.WithRunner
	// contains filtered or unexported fields
}

func (*SearchAttack) Clone

func (a *SearchAttack) Clone(r *loadgen.Runner) loadgen.Attack

func (*SearchAttack) Do

func (*SearchAttack) Setup

func (a *SearchAttack) Setup(hc loadgen.RunnerConfig) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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