
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Benchmark your event loop, extracted from hapi, hoek, heavy and boom.
To install loopbench, simply use npm:
npm i loopbench --save
See example.js.
Creates a new instance of loopbench.
Options:
sampleInterval
: the interval at which the eventLoop should be
sampled, defaults to 5
.limit
: the maximum amount of delay that is tollerated before
overLimit
becomes true, and the load
event is
emitted, defaults to 42
.Events:
load
, emitted when instance.delay > instance.limit
unload
, 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.
FAQs
Benchmark your event loop
The npm package loopbench receives a total of 14,734 weekly downloads. As such, loopbench popularity was classified as popular.
We found that loopbench demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.