runLoadStep
@forge/monorepo / backend/src / runLoadStep
Function: runLoadStep()
runLoadStep(
input):Promise<LoadStep>
Defined in: backend/src/loadtest/harness.ts:579
One step of the load staircase.
Offers a fixed rate for a fixed duration, then waits for the queue to drain before measuring. Measuring without draining would attribute a step's backlog to the next step and the staircase would show capacity that is really borrowed from earlier.
Parameters
input
durationMs
number
harness
now?
() => number
offeredPerSecond
number
settleTimeoutMs?
number
How long to wait for a step's work to finish before calling the remainder stuck.
sleep?
(ms) => Promise<void>
startIndex
number
tenantId
Returns
Promise<LoadStep>