Documentation ¶
Index ¶
- type Monitoring
- type Recipe
- type Report
- func (report *Report) PrintReport(ctx context.Context)
- func (report *Report) RecordBenchmarkDuration(ctx context.Context, start time.Time, end time.Time)
- func (report *Report) RecordBlockTime(ctx context.Context, start time.Time, end time.Time)
- func (report *Report) RecordLatency(ctx context.Context, start time.Time, end time.Time)
- func (report *Report) RecordTPS(ctx context.Context, blockTimeStart time.Time, blockTimeEnd time.Time, ...)
- type Run
- type TxPending
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitoring ¶
type Monitoring struct { Report *Report Stream chan *TxPending TxFired int Done bool // contains filtered or unexported fields }
func InitMonitoring ¶
func InitMonitoring(ctx context.Context, cancel context.CancelFunc) *Monitoring
func (*Monitoring) IsOurTx ¶
func (monitoring *Monitoring) IsOurTx(ctx context.Context, hash string) bool
func (*Monitoring) NoMorePendingTxs ¶
func (monitoring *Monitoring) NoMorePendingTxs() bool
type Recipe ¶
type Recipe struct { Duration time.Duration // the duration of the benchmark Amount int // the number of transactions to post. If set duration must be ignored Endpoint string // the URL address of the blockchain node to benchmark TendermintEndpoint string // (only for Cosmos chains) the node's Tendermint RPC endpoint to use Runs []Run // multiple runs are run concurrently }
a recipe is an internal representation of a user-initiated benchmark
type Report ¶
type Report struct { Latencies *hdrhistogram.Histogram BlockTimes *hdrhistogram.Histogram TPS *hdrhistogram.Histogram BenchmarkDuration time.Duration }
func (*Report) PrintReport ¶
func (*Report) RecordBenchmarkDuration ¶
func (*Report) RecordBlockTime ¶
func (*Report) RecordLatency ¶
Click to show internal directories.
Click to hide internal directories.