Skip to main content

benchPubSub

@webda/bench


Function: benchPubSub()

benchPubSub(harness, options?): Promise<BenchResult[]>

Defined in: packages/bench/src/suites/pubsub.ts:117

Benchmark a pub/sub service: every subscriber receives every message

Scenarios: publish throughput without subscriber, open-loop end-to-end latency, end-to-end throughput, fan-out to several subscribers and round trip per payload size. Queues are not run through this suite: their consumers compete for messages.

Parameters​

harness​

PubSubBenchHarness

creates the services under test

options?​

PubSubBenchOptions = {}

profile, filter and reporters

Returns​

Promise<BenchResult[]>

the results