perftest

package
v0.73.12 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Opts) error

Run is the main function of `perftest` package

Types

type BatchOrders

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

BatchOrders stores pending messages ready to be sent in a batch

func (*BatchOrders) Empty

func (b *BatchOrders) Empty()

Empty clears any pending messages

func (*BatchOrders) GetMessageCount

func (b *BatchOrders) GetMessageCount() int

GetMessageCount returns the number of meesages waiting to be sent for this one user

type Opts

type Opts struct {
	DataNodeAddr      string
	WalletURL         string
	FaucetURL         string
	GanacheURL        string
	TokenKeysFile     string
	CommandsPerSecond int
	RuntimeSeconds    int
	NormalUserCount   int
	LpUserCount       int
	MarketCount       int
	Voters            int
	MoveMid           bool
	BatchSize         int
	PeggedOrders      int
	PriceLevels       int
	SLAUpdateSeconds  int
	SLAPriceLevels    int
	StopOrders        int
	StartingMidPrice  int64
	FillPriceLevels   bool
	InitialiseOnly    bool
	DoNotInitialise   bool
	UseLPsForOrders   bool
}

Opts hold the command line values

type UserDetails

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

UserDetails Holds wallet information for each user

Jump to

Keyboard shortcuts

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