MCPcopy
hub / github.com/tsenart/vegeta / LinearPacer

Struct LinearPacer

lib/pacer.go:253–256  ·  view source on GitHub ↗

LinearPacer paces an attack by starting at a given request rate and increasing linearly with the given slope.

Source from the content-addressed store, hash-verified

251// LinearPacer paces an attack by starting at a given request rate
252// and increasing linearly with the given slope.
253type LinearPacer struct {
254 StartAt Rate
255 Slope float64
256}
257
258// Pace determines the length of time to sleep until the next hit is sent.
259func (p LinearPacer) Pace(elapsed time.Duration, hits uint64) (time.Duration, bool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected