Performance Profiling for V8
summary
Shows how V8 finds real bottlenecks: concrete inline caches behavior, the exact map checks that trigger monomorphic/polymorphic/megamorphic paths, and why repeated bailouts cause “not optimized” warnings. Demonstrates how to get the actual optimized machine code and deopt traces using --js-flags=... (print_opt_code, trace_deopt, etc.), how to inspect IC state with the ICC explorer, and how to run D8 or Node with V8 flags so changes to shapes, property accesses, or object layouts can be measured and fixed.
AI-written summary · about
chapters (11)
- 0:00Start
- 1:17Javascript Engines
- 1:29V8
- 2:48Key Concepts of V8
- 5:01Fundamentals
- 6:44Just-in-Time Compilation
- 9:48Simple Load Function
- 11:59Inline Caches
- 17:56Optimization Bailout
- 21:01Icy Explorer
- 24:37General Warning
related talks
25mPerformance profiling for V8
23mJoin the super secret V8 club & become a JavaScriptbender
32mV8 by example: A journey through the compilation pipeline
33mJavaScript: The V8 Engine optimization tips (...)
17mV8 engine, JS Code Interpretation, and Execution
41mBenchmarking JavaScript
26mPractical Optimization for V8
22mHigh Performance JS in V8
