To install loopbench, simply use npm:
npm i loopbench --save
Creates a new instance of loopbench.
sampleInterval: the interval at which the eventLoop should be sampled, defaults to
limit: the maximum amount of delay that is tollerated before
overLimitbecomes true, and the
loadevent is emitted, defaults to
load, emitted when
instance.delay > instance.limit
unload, emitted when
The delay in milliseconds (and fractions) from the expected run. It might be negative (in older nodes).
The maximum amount of delay that is tollerated before
overLimit becomes true, and the
load event is
true if the
instance.delay > instance.limit.
Stops the sampling.
Copyright Matteo Collina 2015, Licensed under MIT.