Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ¶
func NewLoadBot(cfg *Configuration, metrics *Metrics) *Loadbot
type LoadbotCommand ¶
type LoadbotCommand struct { helper.Base Formatter *helper.FormatterFlag }
func (*LoadbotCommand) DefineFlags ¶
func (l *LoadbotCommand) DefineFlags()
func (*LoadbotCommand) GetBaseCommand ¶
func (l *LoadbotCommand) GetBaseCommand() string
func (*LoadbotCommand) GetHelperText ¶
func (l *LoadbotCommand) GetHelperText() string
func (*LoadbotCommand) Help ¶
func (l *LoadbotCommand) Help() string
func (*LoadbotCommand) Run ¶
func (l *LoadbotCommand) Run(args []string) int
func (*LoadbotCommand) Synopsis ¶
func (l *LoadbotCommand) Synopsis() string
type LoadbotResult ¶
type LoadbotResult struct { CountData TxnCountData `json:"countData"` TurnAroundData TxnTurnAroundData `json:"turnAroundData"` BlockData TxnBlockData `json:"blockData"` DetailedErrorData TxnDetailedErrorData `json:"detailedErrorData,omitempty"` ApproxTPS uint64 `json:"approxTps"` }
func (*LoadbotResult) Output ¶
func (lr *LoadbotResult) Output() 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:"blocksRequired"` // BlockTransactionsMap maps the block number to the number of loadbot transactions in it BlockTransactionsMap map[uint64]uint64 `json:"blockTransactionsMap"` }
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:"detailedErrorMap"` }
Click to show internal directories.
Click to hide internal directories.