Constructors
constructor
- new Bench(nc, opts?): Bench
Properties
Optional
asyncRequests
asyncRequests?: boolean
callbacks
callbacks: boolean
msgs
msgs: number
nc
payload
payload: Uint8Array
perf
Optional
pub
pub?: boolean
Optional
rep
rep?: boolean
Optional
req
req?: boolean
size
size: number
Optional
sub
sub?: boolean
subject
subject: string
Methods
processMetrics
- processMetrics(): Metric[]
run
- run(): Promise<Metric[]>
Returns Promise<Metric[]>
runAsync
- runAsync(): Promise<void>
Returns Promise<void>
runCallbacks
- runCallbacks(): Promise<void>
Returns Promise<void>