Node.js Performance Cheat Sheet

Event loop, streams, and profiling

Last Updated: November 21, 2025

Metrics

Focus Tool
Event loop clinic doctor
Heap clinic heap
Streams clinic flame

Commands

node --trace-events app.js
Trace
clinic doctor -- node app.js
Analyze
node --prof
Profile

Advice

Avoid blocking loops, cache heavy results, and use stream backpressure.

💡 Pro Tip: Profile with clinic/flame, avoid sync fs, and handle backpressure.
← Back to Programming Languages | Browse all categories | View all cheat sheets