UNPKG

phasic

Version:

Run functions in phases. Useful for load and performance testing

9 lines (8 loc) 255 B
export declare type Phase = { duration: number; arrivalRate: number; }; export declare type PhaseFunction = { (): Promise<any>; }; export declare function runPhases<T>(phases: Phase[], func: PhaseFunction): Promise<PromiseSettledResult<T>[]>;