
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
dep-perf-analyzer
Advanced tools
Measure the runtime performance impact of npm dependencies — startup time, memory, and event loop blocking
Measure the runtime performance impact of npm dependencies — startup time, memory, and event loop blocking
npm install dep-perf-analyzer
import analyzeDep, {analyzeMultiple, formatReport} from 'dep-perf-analyzer';
// Analyze a single dependency
const result = await analyzeDep('express');
console.log(result.startupTime); // Startup time in ms
console.log(result.memoryDelta.heapUsed); // Heap memory delta in bytes
// Analyze multiple dependencies
const results = await analyzeMultiple(['express', 'koa', 'fastify']);
console.log(formatReport(results));
analyzeDep(packageName, options?)Returns: Promise<{startupTime, memoryDelta, eventLoopBlock}>
Type: string
The package name or module specifier to analyze.
Type: object
Type: number
Default: 3
Number of measurement iterations. Median values are used for stability.
Type: boolean
Default: true
Whether to run a warmup iteration before measuring.
startupTime — Median startup time in millisecondsmemoryDelta.rss — RSS delta in bytesmemoryDelta.heapUsed — Used heap delta in bytesmemoryDelta.heapTotal — Total heap delta in byteseventLoopBlock — Median event loop blocking time in millisecondsanalyzeMultiple(packageNames, options?)Returns: Promise<Map<string, AnalysisResult>>
Analyze multiple packages sequentially.
formatReport(results)Returns: string
Format a results map as a human-readable table.
MIT
FAQs
Measure the runtime performance impact of npm dependencies — startup time, memory, and event loop blocking
The npm package dep-perf-analyzer receives a total of 0 weekly downloads. As such, dep-perf-analyzer popularity was classified as not popular.
We found that dep-perf-analyzer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.