Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommand ¶ added in v0.3.0
Types ¶
type Configuration ¶
type ExecDuration ¶
type ExecDuration struct {
// AverageTurnAround is the average turn around time for all passing transactions
AverageTurnAround time.Duration
// FastestTurnAround is the fastest turn around time recorded for a transaction
FastestTurnAround time.Duration
// SlowestTurnAround is the slowest turn around time recorded for a transaction
SlowestTurnAround time.Duration
// TotalExecTime is the total execution time for a single loadbot run
TotalExecTime time.Duration
// contains filtered or unexported fields
}
type Loadbot ¶
type Loadbot struct {
// contains filtered or unexported fields
}
func NewLoadbot ¶ added in v0.3.0
func NewLoadbot(cfg *Configuration) *Loadbot
func (*Loadbot) GetGenerator ¶ added in v0.3.0
func (l *Loadbot) GetGenerator() generator.TransactionGenerator
func (*Loadbot) GetMetrics ¶ added in v0.3.0
type LoadbotResult ¶
type LoadbotResult struct {
CountData TxnCountData `json:"count_data"`
TurnAroundData TxnTurnAroundData `json:"turn_around_data"`
BlockData TxnBlockData `json:"block_data"`
DetailedErrorData TxnDetailedErrorData `json:"detailed_error_data,omitempty"`
ApproxTPS uint64 `json:"approx_tps"`
}
func (*LoadbotResult) GetOutput ¶ added in v0.3.0
func (lr *LoadbotResult) GetOutput() string
type Metrics ¶
type Metrics struct {
TotalTransactionsSentCount uint64
FailedTransactionsCount uint64
TransactionDuration ExecDuration
}
type TxnBlockData ¶
type TxnBlockData struct {
// BlocksRequired is the required number of blocks to seal the data
BlocksRequired uint64 `json:"blocks_required"`
// BlockTransactionsMap maps the block number to the number of loadbot transactions in it
BlockTransactionsMap map[uint64]uint64 `json:"block_transactions_map"`
}
type TxnCountData ¶
type TxnDetailedErrorData ¶
type TxnDetailedErrorData struct {
// DetailedErrorMap groups transaction errors by error type, with each transaction hash
// mapping to its specific error
DetailedErrorMap map[generator.TxnErrorType][]*generator.FailedTxnInfo `json:"detailed_error_map"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.