Benchmark your event loop
npm install loopbenchBenchmark your event loop, extracted from hapi,
hoek, heavy and
boom.
* Install
* Example
* API
* Acknowledgements
* License
```
npm i loopbench --save
See [example.js][example].
* loopbench()
* instance.delay
* instance.limit
* instance.overLimit
* instance.stop()
-------------------------------------------------------
Creates a new instance of loopbench.
Options:
* sampleInterval: the interval at which the eventLoop should be5
sampled, defaults to .limit
* : the maximum amount of delay that is tollerated beforeoverLimit
becomes true, and the load event is42
emitted, defaults to .
Events:
* load, emitted when instance.delay > instance.limitunload
* , emitted when overLimit goes from true and false
-------------------------------------------------------
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
emitted.
-------------------------------------------------------
Is true if the instance.delay > instance.limit`.
-------------------------------------------------------
Stops the sampling.
Copyright Matteo Collina 2015-2022, Licensed under [MIT][].
[MIT]: ./LICENSE
[example]: ./example.js