CustomScenario
Interface: CustomScenario
Defined in: packages/bench/src/runner.ts:135
Scenario measuring itself: throughput of a drain, fan-out deliveries...
Extends
Properties
name
name:
string
Defined in: packages/bench/src/runner.ts:35
Scenario name, prefixed by the suite: store.get
Inherited from
params?
optionalparams?:BenchParams
Defined in: packages/bench/src/runner.ts:39
Parameters of this run, part of the result key
Inherited from
Methods
run()
run(
latency):Promise<CustomScenarioOutcome>
Defined in: packages/bench/src/runner.ts:141
Run the scenario
Parameters
latency
recorder for the latencies of the operations
Returns
Promise<CustomScenarioOutcome>
setup()?
optionalsetup():Promise<void>
Defined in: packages/bench/src/runner.ts:43
Prepare the scenario, not measured
Returns
Promise<void>
Inherited from
teardown()?
optionalteardown():Promise<void>
Defined in: packages/bench/src/runner.ts:47
Clean after the scenario, not measured
Returns
Promise<void>
Inherited from
verify()?
optionalverify():Promise<ScenarioChecks>
Defined in: packages/bench/src/runner.ts:51
Check the correctness after the measurement, not measured
Returns
Promise<ScenarioChecks>