Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseThresholds ¶
ParseThresholds parses expressions such as "p95 < 200ms" and "errorRate < 1%".
Types ¶
type Config ¶
type Config struct {
VUs int
VUsTo int
UsersToSet bool
Rate float64
RateSet bool
RateTo float64
RateToSet bool
StageText []string
Stages []Stage
MaxInFlight int
MaxEndpoints int
Duration time.Duration
Warmup time.Duration
RPS int
Thresholds []string
Vars map[string]any
Client *http.Client
Tag string
Timeout time.Duration
Env string
Suite *suite.Suite
Dial func(context.Context, string, map[string]any) (engine.Link, error)
NewPage func(context.Context) (engine.Page, error)
}
type Result ¶
type Result struct {
Started time.Time
Elapsed time.Duration
Profile string
Open bool
VUs int
Iterations int64
FailedIterations int64
Requests int64
TransportErrors int64
EndpointLimit int
EndpointOverflow int64
Endpoints []Endpoint
Thresholds []Threshold
Passed bool
Failures []engine.ScenarioResult
Overall Stats
Scheduled Stats
MissedStarts int64
LateStarts int64
MaxStartLag time.Duration
CPU time.Duration
RSS uint64
Goroutines int
}
type Stage ¶ added in v0.3.0
type Stage struct {
Rate bool
Spike bool
From float64
To float64
ToSet bool
Duration time.Duration
}
Stage is one segment of a load plan. Users and rate segments cannot mix. A spike jumps to From for Duration, then returns to the level before it.
func ParseStage ¶ added in v0.3.0
ParseStage reads "users=1:40 duration=30s" or "spike rate=200 duration=10s".
Click to show internal directories.
Click to hide internal directories.