Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline orchestrates the stress test execution
func (*Pipeline) WithRunConfig ¶
WithRunConfig sets the run configuration
type Result ¶
type Result struct {
// Execution info
StartTime time.Time
EndTime time.Time
Duration time.Duration
// Stage results
StageResults []*StageResult
// Summary
TotalTransactions int
SuccessfulTxs int
FailedTxs int
TimeoutTxs int
// Performance metrics
TPS float64
ConfirmedTPS float64
AvgLatency time.Duration
P95Latency time.Duration
P99Latency time.Duration
// Gas metrics
TotalGasUsed uint64
TotalGasCost string
// Detailed report
Report *collector.Report
// Errors encountered
Errors []error
}
Result represents the complete pipeline execution result
func (*Result) AddStageResult ¶
func (r *Result) AddStageResult(sr *StageResult)
AddStageResult adds a stage result
type RunConfig ¶
type RunConfig struct {
// Skip distribution if accounts already funded
SkipDistribution bool
// Skip collection (fire-and-forget mode)
SkipCollection bool
// Export report to files
ExportReport bool
// Output directory for reports
OutputDir string
// Use streaming mode instead of batch mode
StreamingMode bool
// Rate limit for streaming mode (tx/s)
StreamingRate float64
// Dry run (build transactions but don't send)
DryRun bool
}
RunConfig holds runtime configuration for the pipeline
func DefaultRunConfig ¶
func DefaultRunConfig() *RunConfig
DefaultRunConfig returns default run configuration
Click to show internal directories.
Click to hide internal directories.