benchmarker

package
v0.0.0-...-db344e9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAndSendTransactions

func BuildAndSendTransactions(ethclient *ethclient.Client, runtime tooltypes.TxBuilder, ctx *TxBenchmarkerContext) ([]*types.Transaction, error)

func RunRpcBenchmarks

func RunRpcBenchmarks(
	parsedNodes tooltypes.Nodes,
	test tooltypes.LoadTest,
	verbose bool,
	includeDeepOutput []tooltypes.DeepOutput,
) (map[string]tooltypes.LoadTestOutput, error)

Types

type Benchmarker

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

func NewBenchmarker

func NewBenchmarker(cfg *config.EnvConfig) (*Benchmarker, error)

func (*Benchmarker) Initialize

func (b *Benchmarker) Initialize() error

func (*Benchmarker) RunBenchmarks

func (b *Benchmarker) RunBenchmarks(ctx context.Context)

type RpcBenchmarker

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

func NewRpcBenchmarker

func NewRpcBenchmarker(cfg *config.EnvConfig, nodes tooltypes.Nodes) (*RpcBenchmarker, error)

func (*RpcBenchmarker) Run

func (b *RpcBenchmarker) Run() error

type TxBenchmarker

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

func NewTxBenchmarker

func NewTxBenchmarker(client *ethclient.Client, mnemonic, url string, txType tooltypes.TxType,
	subAccountsCount int, transactionCount int, batchSize int, outputDir string) (*TxBenchmarker, error)

func (*TxBenchmarker) Initialize

func (t *TxBenchmarker) Initialize() error

func (*TxBenchmarker) Run

func (t *TxBenchmarker) Run() error

type TxBenchmarkerContext

type TxBenchmarkerContext struct {
	AccountIndexes []int
	NumTxs         int
	BatchSize      int
	Mnemonic       string
	URL            string
}

func NewTxBenchmarkerContext

func NewTxBenchmarkerContext(accountIndexes []int, numTxs, batchSize int, mnemonic, url string) *TxBenchmarkerContext

Jump to

Keyboard shortcuts

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