10 secrets to improve Javascript Performance
summary
Concrete wins and tools not platitudes: concrete code swaps like replacing sequential awaits with Promise.all halves wall time or turning three map/filter/reduce passes into one loop yield up to 10× speedups; swapping a package raises throughput from ~200 to ~2000 concurrent requests; adding a MongoDB index cuts queries from seconds to milliseconds. Observability and load tools are used — 0x, autocannon, Clinic.js — plus caching, PM2, streams over fs.readFile, and optional native C++ modules; each example includes what changed and how much it helped.
AI-written summary · about
chapters (14)
- 0:00Introduction to performance
- 1:33Node.js lifecycle concepts
- 3:36Asynchronous operations
- 6:58Optimizing collection methods
- 10:45Caching strategies
- 13:37Process management with PM2
- 15:53HTTP/3 and network efficiency
- 17:52Database and boundary tuning
- 21:21API design considerations
- 24:33Performance monitoring tools
- 29:05Observability and logging
- 30:57Leveraging streams in Node.js
- 34:32Native modules and C++
- 37:16Conclusion and Q&A
related talks
53mMastering Node.js Performance
11mRevolutionizing JavaScript Performance
53mMastering Node.js Performance
34mUnderstanding JavaScript Performance
34mOptimizing Performance in Large-Scale React & Node.js Applications
46mInvisible performance. How fast is your JavaScript code?
29mExtreme JavaScript Performance
31mJavaScript Compilation Techniques or "Wasn't JavaScript supposed to be slow?"
