Mastering Node.js Performance
summary
Shows concrete wins and losses: replacing synchronous file/hashing with async raises throughput from 123 to 428 requests and cuts the 50th/97th percentiles from 4.8s/7.8s to 2.2s/2.4s (measured with autocannon); resolving a million promises runs ~1.8s native vs ~1.4s with Bluebird; typed arrays cut bulk insertion from ~723ms to ~25ms; cluster master process adds overhead so nginx/iptables beat Node cluster for throughput; fix sequential I/O with Promise.all, avoid delete, prefer classes and typed arrays.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:10General Performance Tips
- 5:55Traditional Approach
- 28:52Possible Multi Process Setups
- 31:21Request Load Comparison
- 32:18Why Cluster Module Handles
- 45:47Avoid Using Dynamic Properties
related talks
53mMastering Node.js Performance
37mCallbacks to Async/Await in Node.js
46m10 secrets to improve Javascript Performance
24mYou Did What? Understanding Node.js Optimizations
11mRevolutionizing JavaScript Performance
01h 04mNode.js performance analytics and best practices
23mDecomposition of the Main Thread in Node.js to increase throughput
23mHolding on to Your Performance Promises
